#!/bin/bash
endung="m4v"
ls *.$endung | while read i; do mv "$i" `echo $i | tr -d " "`; done > /dev/null 2>&1
ls *.$endung | while read i; do mv "$i" `echo $i | cut -d "h" -f2`; done > /dev/null 2>&1
n=1; for i in `ls *.$endung | sort -n`; do mv "$i" $(printf "%02d" $n).$endung; n=`expr $n + 1`; done > /dev/null 2>&1
n=1;for i in *;do mv $i Peer$(printf "%03d" $n).jpg;n=`expr $n + 1`;done
n=1;for i in *;do name=$(echo $i | cut -f1 -d” ”);mv "$i" "EisnerzerSteig$n.jpg";n=`expr $n + 1`;done
n=1;for i in *;do mv $i 2012-07-24_$(printf "%03d" $n).jpg;n=`expr $n + 1`;done
n=45;for i in *;do mv $i $(printf "%03d" $n).jpg;((n--));done
n=1;for i in *;do mv $i $(printf "%03d" $n).jpg;((n++));done
#!/bin/bash
files=$(ls *);
n=1;
for i in $files;
do
name=$(echo $i | cut -f1 -d".");
mv $i peer\($n\).jpg ;
n=`expr $n + 1`
done
#!/bin/bash
files=$(ls *.dat);
for i in $files;
do
name=$(echo $i | cut -f1 -d".");
mv $i "$name".txt ;
done