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
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment