[H-GEN] Re: [H-CHAT] top ten *nix utilities?
Thu Dec 6 21:46:47 EST 2001
Folks,
Jason answered Matthew's question (below) with a perl script.
> was just wondering, what would be the top ten (favourite)
> command line utilities? (excluding basic commands cd, mv, cp,
> ls etc...)
Having just seen some tiny perl scripts to emulate common perl
utilities, e.g., "perl -pe11..exit" replaces "head", I thought
Jason's perl script a little to long. The following uses those
command line utilities to produce the report of my history.
$ perl -lne'/^(?:sudo )?(\S+)/ and print $1' ~/.bash_history|sort|uniq -c|sort -rn
34 ls
23 clear
18 vi
18 perl
15 cat
12 cd
9 host
6 ssh
6 less
6 apt-cache
Yours sincerely,
-- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
gpg key id F2FEBB36 | you realise that what you heard is not
mobile 0411 262 316 | what I meant. Robert J. McCloskey
More information about the General
mailing list