in reply to Re^3: NON Common Elements between two columns
in thread NON Common Elements between two columns

Ok thank you ! I've tried so: perl scriptyoumade.pl <> mytext.txt > output.txt But give me a blank file. So I'm afraid to not having understand what you said me in the last post.
  • Comment on Re^4: NON Common Elements between two columns

Replies are listed 'Best First'.
Re^5: NON Common Elements between two columns
by aitap (Curate) on Jul 17, 2012 at 13:16 UTC
    <> is a file descriptor reading operation and it is already inside the script, so you should run either perl script.pl mytext.txt >output.txt (passing filename as command line argument) or perl script.pl <mytext.txt >output.txt (passing file contents as STDIN).
    Sorry if my advice was wrong.