Know Shell Script

Thursday, May 23, 2013

find string in file using find command


Here is the syntax to find a word in a file.

find . -type f -exec grep -l "word" {} +
Posted by Ajeet at 11:05 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2016 (3)
    • ►  August (3)
  • ▼  2013 (16)
    • ►  November (2)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  June (2)
    • ▼  May (1)
      • find string in file using find command
    • ►  March (3)
    • ►  February (1)
  • ►  2012 (5)
    • ►  November (1)
    • ►  October (4)

About Me

My photo
Ajeet
View my complete profile
Simple theme. Powered by Blogger.