The Random Ramblings

lost? dazed? confused? dont come here then as this aint goona help!!

Renaming multiple files in one go

Another quick one because I keep forgetting the exact syntax, renaming lots of files from the command line

for i in `ls *.pdf` ; do cp $i ${i/pdf/orig}; done

this example lists all files that end in .pdf and then removes the pdf and replace it with orig. Simple and now I should remember it and hopefully it should be useful to some others out there

Find Me
Javascript learning