HopeLessGuy
Technical User
I have a question. In Linux, grep -L would show the filenames of all files that didn't have the string I was searching for. Does SunOS have an equivilent to this? The closest I can see is -v, but that shows the entire body excluding the string and doesn't show the filenames(s).
Also, is there a method for grep to tell you which files contain a certain number of entries? For example, grep -c "String" *.boom would list how man lines that String is found in. Does grep have the flexibility to where I can set the number of entries that should be found(Or less) and have it output the filenames?
Also, is there a method for grep to tell you which files contain a certain number of entries? For example, grep -c "String" *.boom would list how man lines that String is found in. Does grep have the flexibility to where I can set the number of entries that should be found(Or less) and have it output the filenames?