On 15/12/03 22:59 +0530, Dr. Sharukh K. R. Pavri. wrote:
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.
The whole command is a single line. I tested it before posting.
Devdas Bhagat