gudii9
asked on
grep not working
Erro with unix query
grep -C20 'contactNumber before is------>' *
above grep command gives below error message
grep: diagnostic_images: Is a directory
grep: jmsservers: Is a directory
what it means?
please advise
grep -C20 'contactNumber before is------>' *
above grep command gives below error message
grep: diagnostic_images: Is a directory
grep: jmsservers: Is a directory
what it means?
please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
can i use below command?
yes since you are specifying a certain file name pattern
however, since you used the wildcard before and had nothing, as mentioned, use -r to be recursive through subdirctories
else, as-is, that command will return nothing if there are no *.log* files in that current folder
yes the would be the right command.
Hi,
Please use -R parameter while grep , this may help you to solve.
Please use -R parameter while grep , this may help you to solve.
ASKER
file1.log009
file2.log008
etc
can i use below command?
grep 'contactNumber before is------>' *.log*