Link to home
Start Free TrialLog in
Avatar of ciphersol
ciphersol

asked on

UNIX command to display the names of the files that don't have a text string

I need a UNIX command that searches a list of of files (*.log)  that don't contain a search string and displays the name of the files that don't have that string.
Avatar of Gerwin Jansen
Gerwin Jansen
Flag of Netherlands image

grep -L string *. log
Avatar of ciphersol
ciphersol

ASKER

That's not a valid option for me on HPUX.

grep: illegal option -- L
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvwx] -e pattern_list...
        [-f pattern_file...] [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvwx] [-e pattern_list...]
        -f pattern_file... [file...]
usage: grep [-E|-F] [-c|-l|-q] [-bhinsvwx] pattern [file...]
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That does the trick.  Thank  you.