Guys,
Don't laugh ...
Have a couple of variables, would like to grep for VAR1 AND var2 in a file.
AWK is a possible, but need to pass the variables into it ...
grep is possible,
grep var1 filename |grep var2 .. but not neat ...
and better ways ???
Thanks,
Martin
Don't laugh ...
Have a couple of variables, would like to grep for VAR1 AND var2 in a file.
AWK is a possible, but need to pass the variables into it ...
grep is possible,
grep var1 filename |grep var2 .. but not neat ...
and better ways ???
Thanks,
Martin