On Thu, 11 Dec 2003, Devdas Bhagat wrote:
On 10/12/03 18:00 +0530, Dr. Sharukh K. R. Pavri. wrote:
I have a text file in the format
Full name email@ddress
perl -e 'while(<>) { @names = split /\s+/; foreach (@names) { print "$_ " if ! /@/)}; print "\n" } ' < file.
Devdas Bhagat
That gives ---------------- syntax error at -e line 1, near "/@/)" Execution of -e aborted due to compilation errors. ------------------
Sharukh.