In Großbuchstaben umwandeln
#!/bin/sh # for file in $(ls -A); do mv $file $(echo $file | tr [a-z] [A-z]); done
In Kleinbuchstaben umwandeln
#!/bin/sh for file in $(ls -A); do mv $file $(echo $file | tr [A-Z] [a-z]); done
#!/bin/bash # # Convert m4a to mp3 for i in $1/*.m4a do mplayer -ao pcm "$i" -ao pcm:file="$i.wav" dest=`echo "$i.wav"|sed -e 's/m4a.wav$/mp3/'` lame -h -b 192 "$i.wav" "$dest" rm "$i" "$i.wav" done
convmv -f iso-8859-1 -t utf8 -i -r --notest $1 # -f ENCODING # specify the current encoding of the filename(s) from which should # be converted # # -t ENCODING # specify the encoding to which the filename(s) should be converted # # -i interactive mode (ask y/n for each action) # # -r recursively go through directories # # --notest # Needed to actually rename the files. By default convmv will just # print what it wants to do.
#!/bin/sh while [ x"$1" != x ]; do case "$1" in *.tar.gz | *.tgz ) tar -xzf "$1" shift ;; *.tar.bz2 | *.tbz ) tar -xjf "$1" shift ;; *.zip) unzip "$1" shift ;; *.ace) unace e "$1" shift ;; *.rar) unrar x "$1" shift ;; *.tar) tar -xf "$1" shift ;; *.gz) gunzip "$1" shift ;; *.bz2) bunzip2 "$1" shift ;; *) shift ;; esac done