On Mon, 4 Nov 1996, Alan K. Stebbens wrote:
is it possible to combine this command?
%grep ^. *list | grep -v @
grep '^[^@ ]+$' *list
What does '+$' do??
Uh, it is "[^@ ]+", which matches one or more non-blank, non-"@" characters.
And, sorry, but I should have written "egrep", not "grep". "Egrep" supports
the "extended" regular expressions, including "+".
The trailing "$" is the "end of line" marker.
If you don't have "egrep", the equivalent grep expression is:
grep '^[^@ ][^@ ]*$' *list
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com> http://reality.sgi.com/aks