Re: command line option with -ne to print newline

2004-09-17 Thread John W. Krahn
Ramprasad A Padmanabhan wrote: Quick question, I want to run perl -ane '/REMARKS/ && print $F[1]' FILE1 FILE2 the problem is that there is no newline at the end of the every print. so I have to do perl -ane '/REMARKS/ && print $F[1] . "\n"' FILE1 FILE2 I thought there is a switch in

command line option with -ne to print newline

2004-09-17 Thread Ramprasad A Padmanabhan
Quick question, I want to run perl -ane '/REMARKS/ && print $F[1]' FILE1 FILE2 the problem is that there is no newline at the end of the every print. so I have to do perl -ane '/REMARKS/ && print $F[1] . "\n"' FILE1 FILE2 I thought there is a switch in perl by which I could auto pr