skip to main
|
skip to sidebar
A Flyer's Log
Thursday, 3 July 2008
Recursive Find and Replace in Directory
Sed to our rescue :)
1. Generating the file argument using "find" command :
find ./ -type f -exec sed -i 's/string1/string2/' {} \;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2009
(2)
►
October
(1)
►
June
(1)
▼
2008
(3)
▼
July
(1)
Recursive Find and Replace in Directory
►
June
(1)
►
January
(1)
►
2007
(3)
►
December
(1)
►
November
(2)
No comments:
Post a Comment