develooper Front page | perl.beginners | Postings from May 2008

faster ways than perl?

Thread Next
From:
Richard Lee
Date:
May 14, 2008 13:41
Subject:
faster ways than perl?
I am running this command on over 2 gigs worth of lines....

which one should be faster?

cut -d'|' -f21 * | sort | uniq -c | sort


perl -F"\|"  -lane 'print $F[21]' * | sort | uniq -c | sort


or is there faster ways to do this on perl?

Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About