Wouter,
Wouter Verhelst schreef op 2013-03-25 15:26:
#!/bin/bash
while [ ! -z "$1" ]
do
NAME="$1"
shift
BASE="${NAME%.*}"
EXT="${NAME#$BASE}"
BASE="$(echo "$BASE" | sed -e 's/ *$//')"
mv "$NAME" "${BASE}.${EXT}"
done
Je script samen met onderstaande werkt. Maar ik krijg alleen wel twee
punten bij de extensie?
find . -name "* .*" -exec extra-spaces.sh {} \;
Tino Rossi - Vieni Vieni .mp3 wordt nu Tino Rossi - Vieni Vieni..mp3
Met vriendelijke groet,
Frans van Berckel
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]