Java Jirawat
Jirawat Uttayaya Tech Notes
2013-01-16
Find and replace all files in Unix
Sample problem:
Find and replace the word TODO with the word DONE in all Java files in the directory src .
Solution:
find src -name "*.java" | xargs perl -pi -e "s/TODO/DONE/g"
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment