grep patterns
I read the man pages for grep but I am still not sure how to do this simple task.
I want to look at log files that fall within July "Jul" AND have the string "BVCF" in them. Is it possible to have more than one criteria in a grep command? If so, what is the correct syntax for this? |
You can do
Code:
grep BVCF file | grep Jul |
Hi.
Depending on your version of grep you may be able to do this: Code:
#!/bin/bash - Code:
% ./s1 |
All times are GMT -5. The time now is 05:41 PM. |