Tag Archives: foo

change that, son.

http://www.commandlinefu.com/commands/view/8374/rename-all-files-which-contain-the-sub-string-foo-replacing-it-with-bar

This was a great help. ┬áBasically I had to take about 8 files with the word “stage” in them and replace it with “dev”

for i in ./*stage*;do mv -- "$i" "${i//stage/dev}";done

Bang, done!

Advertisements
Tagged , ,
Advertisements