gradius85 has asked for the wisdom of the Perl Monks concerning the following question:
I am looking at doing and getting better with oneliners from the command line. I am trying to do the following for a 'cat' like replacement.
perl -pe 'print' dataoutput.txtHowever, it prints out each lines twice, which is in the same order as in the file. What am I doing wrong? In addition, I did noticed the following works, but puts a new line between each output
perl -pe 'print "\n"' dataoutput.txtBut that is not what I want as well. This is to understand and learn the concepts of oneliners and get better with Perl
Back to
Seekers of Perl Wisdom