Friday, January 02, 2009
Renaming multiple files in UNIX
Just thought I’d put it out there for those in the same position as I was:
for i in *old*; do mv $i `echo $i | sed 's/old/new/'`; done
This renames all file names that have “old” in it to “new”. Be careful between the two different kinds of tick marks. One is next to the number 1 on your keyboard, and the other is next to the enter key.


Recent comments
Older comments
Page 1 of 320 pages 1 2 3 > Last »Complete Archive – By Category
Complete Archive – By Date