linux - Unix: Searching for a word in files situated at different paths -


To find my instance logs and find specific listings. The log files are located on two different paths. And I want to find both.

Normally I log in to the server, by going to path, grep -i word * filename *

I want to create a script Users who will accept the input for the word and filename and search for it.

Search the way you want to:

  grep -i "Word" * filename * / some / other / path / * filename *  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -