grep -Ir --exclude="*\.svn*" "pattern" *
This weblog only liked a combination of technical articles and writings have been using to keep. Many of the articles published in this blog do not belong to me, articles resources, am showing you care to publish the latter part of the articles.
Tuesday, October 16, 2012
grep --exclude/--include syntax (do not grep through certain files)
Friday, October 12, 2012
Linux : search and replace string in a directory recursively
find /home/zana/folder -type f -exec sed -i 's/oldstring/newstring/g' {} \;
find . -type f -print0 | xargs -0 sed -i 's/Application/whatever/g'
Subscribe to:
Posts (Atom)