Freedom to Write
Saturday 16 May 2009
Multiple file search and run xargs on the output
I want to find the files named 223_meta.db and tid_223.xml in "data" directory and rename 223 with 224 :
find 223 -name *meta.db -o -name tid_* | xargs -i rename "s/223/224/g" {}; echo $i
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Tweets by @sriramperumalla
No comments:
Post a Comment