Lost in Time!!!

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)


grep -Ir --exclude="*\.svn*" "pattern" *
Posted by Unknown at 6:16 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

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'
Posted by Unknown at 9:37 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Subscribe To

Posts
Atom
Posts
All Comments
Atom
All Comments

Labels

  • Design Patterns (1)
  • Singletons (1)

Search This Blog

Total Pageviews

Blog Archive

  • ►  2013 (6)
    • ►  October (1)
    • ►  April (1)
    • ►  March (4)
  • ▼  2012 (12)
    • ►  November (2)
    • ▼  October (2)
      • grep --exclude/--include syntax (do not grep throu...
      • Linux : search and replace string in a directory r...
    • ►  September (1)
    • ►  August (1)
    • ►  June (3)
    • ►  March (2)
    • ►  February (1)
  • ►  2011 (198)
    • ►  December (2)
    • ►  November (9)
    • ►  October (21)
    • ►  September (72)
    • ►  August (8)
    • ►  July (36)
    • ►  June (50)

About Me

Unknown
View my complete profile
Awesome Inc. theme. Theme images by molotovcoketail. Powered by Blogger.