is it possible to combine this command?
%grep ^. *list | grep -v @
I have a file with first names, and their e-mailaddresses
separtated by an empty line.
I just want the names displayed.
Or is there a better way of getting what I want?
How about:
grep '^[^@ ]+$' *list
It will print out any non-empty lines which also do not contain an
at-sign.
If your file of name and address pairs were organized a little
differently, you could more easily use "grep" and "cut" or "awk" to pick
out either part when indexed with either part.
___________________________________________________________
Alan Stebbens <aks(_at_)sgi(_dot_)com> http://reality.sgi.com/aks