-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Maximilian Haeussler on 5/17/2008 8:36 AM:
|
| Let's say I only want the 50 most common lines of a file:
| cat textfile | sort | uniq -c | sort -n | tail -n 50 | tr -s ' ' | cut -f2

Unrelated to your report, but this is a useless use of cat.  Why not:

sort < textfile | uniq -c ...

- --
Don't work too hard, make some time for fun as well!

Eric Blake             [EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgu8HwACgkQ84KuGfSFAYCT0QCdHo9+eVgsK6XUrHjMuyHe3xkD
mVMAoNd7Sdskvz7IhNmPcejguvneCeH5
=ed2u
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to