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

c# - Reactive Extensions ControlScheduler -

ios - How to determine if NSLayoutConstraint is horizontal or vertical? -

c# - Updated Castle to 3.2.1 from 3.0.0 now I cant use FirstNonGenericCoreInterface -