Aimee Cardenas wrote:
Hi, All!

Hello,

I have a file with two important columns in it separated by spaces. I'll call these col1 and col2. I need to sort the data by col2 and then print col1 & col2 to a file. I know I CAN do it with perl, but which way is faster for this kind of processing? Perl or Awk? I know with awk, I can find a one-liner for the command line and I could probably do that with perl, too (I'm just now refreshing myself on perl command line options), but I just thought I'd get some experienced opinions on the best way to do it.

Thanks in advance.  May your sky be filled with perly clouds!  ;-)

Why just limit yourself to AWK or Perl? What about cut(1), join(1), sort(1), etc.?



John
--
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov

--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to