Sign in
Google apps
Main menu
Post a Comment On:
j4neiros
"Counting lines in a file (61960627 lines)"
No comments yet. -
1 – 0 of 0
sed -n '$=' file.txt
real 1m9.237s
user 1m8.602s
sys 0m0.631s
perl -ne 'END { print $NR }' file.txt
real 0m13.876s
user 0m13.245s
sys 0m0.630s
awk 'END { print NR }' file.txt
real 0m8.866s
user 0m8.257s
sys 0m0.608s
wc -l file.txt
real 0m2.550s
user 0m1.677s
sys 0m0.873s
wc file.txt
real 3m4.875s
user 3m3.970s
sys 0m0.895s
posted by J. Ernesto Aneiros at
5:13 PM
on Aug 27, 2010
Leave your comment
You can use some HTML tags, such as
<b>, <i>, <a>
Choose an identity
Google Account
You will be asked to sign in after submitting your comment.
Name/URL
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Name
URL
Anonymous
Comment with your Google account if you’d like to be able to manage your comments in the future. If you comment anonymously, you won’t be able to edit or delete your comment.
Learn more
Please prove you're not a robot
"Counting lines in a file (61960627 lines)"
No comments yet. -