UNIX tips
Wednesday, February 2, 2011
8) How to run a command to a set of files
This is an example to suffix all files ending with mp3 with "bak"
prompt$ for i in `ls *mp3`; do cp $i $i.bak; done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment