rod mclaughlin


Ever wanted to change all filenames containing one string to another? (27 jan 12)

________________________________________


for file in `ls` ; do if [[ "" != `echo $file | grep STR1` ]] ; then mv $file `echo $file | sed s/STR1/STR2/g` ; fi ; done

________________________________________



Back
Portland London