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
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