root bin
Sunday, 5 December 2010
batch rename in Linux command line
The most intuitive way is 'sed' a loop. like this
for file in *.*; do mv $file `echo $file | sed 's/foo/bar/g'` ; done;
-----
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment