find . -name "*.c*" | xargs grep -l 'foo' | xargs /bin/sed -i -e 's/foo/bar/g'
find . -name "*.h" | xargs grep -l 'foo' | xargs /bin/sed -i -e 's/foo/bar/g'
From http://lists.freebsd.org/pipermail/freebsd-questions/2005-January/074032.html
All of the interesting technological, artistic or just plain fun subjects I'd investigate if I had an infinite number of lifetimes. In other words, a dumping ground...
Subscribe to:
Post Comments (Atom)
tim's shared items
Blog Archive
-
▼
2008
(150)
-
▼
April
(13)
- Postgresql - versioning the schema and running tot...
- Literate Programming
- More NTP
- Ext js - javascript library
- CVS to GIT and back
- Circular Icons
- KadC - P2P library
- JSON, Yahoo YUI, charting
- C++ priority queue with multiple threads
- From Postgresql weekly news - geek talk
- substitute text in multiple files at once on Linux
- Programming books
- Joke
-
▼
April
(13)
No comments:
Post a Comment