No subject
Fri Jan 31 06:23:24 EST 2014
>From suter Fri Dec 7 14:53:56 2001
Return-Path: <majordom at caliburn.humbug.org.au>
Received: from diadora.client.uq.net.au (diadora-2 [10.0.1.2])
by zwitterion.humbug.org.au (8.12.1/8.12.1/Debian -2) with ESMTP id fB74rtNT002667
for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 14:53:55 +1000
Received: from caliburn (mail at caliburn.humbug.org.au [203.15.51.6])
by diadora.client.uq.net.au (8.12.1/8.12.1/Debian -2) with ESMTP id fB74rtvm009101
for <suter at zwitterion.humbug.org.au>; Fri, 7 Dec 2001 14:53:55 +1000
Received: from majordom by caliburn with local (Exim 3.12 #1 (Debian))
id 16CCf6-0000Fb-00
for <general-outgoing at lists.humbug.org.au>; Fri, 07 Dec 2001 14:31:00 +1000
Received: from azure.humbug.org.au ([203.143.238.84] ident=mail)
by caliburn with esmtp (Exim 3.12 #1 (Debian))
id 16CCf3-0000FW-00
for <general at lists.humbug.org.au>; Fri, 07 Dec 2001 14:30:57 +1000
Received: from aj by azure.humbug.org.au with local (Exim 3.12 #1 (Debian))
id 16CCf1-0006vo-00; Fri, 07 Dec 2001 14:30:55 +1000
Date: Fri, 7 Dec 2001 14:30:55 +1000
To: Humbug General <general at lists.humbug.org.au>
Subject: Re: [H-GEN] Re: [H-CHAT] top ten *nix utilities?
Message-ID: <20011207143055.B26234 at azure.humbug.org.au>
Mail-Followup-To: Humbug General <general at lists.humbug.org.au>
References: <Pine.LNX.3.96.1011206222018.441B-100000 at avon.timetraveller.org> <01120710233700.03069 at localhost.localdomain> <20011207100323.A3154 at freezer.home> <20011207024647.GM32692 at zwitterion.humbug.org.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20011207024647.GM32692 at zwitterion.humbug.org.au>; from suter at zwitterion.humbug.org.au on Fri, Dec 07, 2001 at 12:46:47PM +1000
Organisation: Lacking
X-PGP: http://azure.humbug.org.au/~aj/aj_key.asc
From: Anthony Towns <aj at azure.humbug.org.au>
Precedence: bulk
Reply-To: general at lists.humbug.org.au
X-Loop: general at lists.humbug.org.au
List-Help: <mailto:majordomo at lists.humbug.org.au?subject=help>
List-Post: <mailto:general at lists.humbug.org.au>
List-Subscribe: <mailto: general-request at lists.humbug.org.au?subject=subscribe>
List-Id: semi-serious discussions about Humbug and Unix-related topics <general at lists.humbug.org.au>
List-Unsubscribe: <mailto: general-request at lists.humbug.org.au?subject=unsubscribe>
List-Archive: <http://archive.humbug.org.au/humbug-general/>
Sender: Majordomo <majordom at caliburn.humbug.org.au>
Status: RO
Content-Length: 1725
Lines: 57
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
On Fri, Dec 07, 2001 at 12:46:47PM +1000, Mark Suter wrote:
> $ perl -lne'/^(?:sudo )?(\S+)/ and print $1' ~/.bash_history|sort|uniq -c|sort -rn
$ sed 's/^sudo *//' ~/.bash_history | cut -d\ -f1 | sort|uniq -c|sort -rn
70 ls
56 ssh
48 less
36 cd
27 lynx
24 fg
22 apt-get
20 vi
13 dpkg
10 rm
10 dig
10 cat
Of course, that doesn't so quite the same thing as Mark's if you use
white space other than the space character to separate your arguments,
but that would be weird. And really, something like:
$ tr ';|' '\n\n' < ~/.bash_history | sed 's/^ *//;s/^sudo */sudo\^V^J/' |
cut -d\ -f1|sort|uniq -c|sort -rn|head -20
would be more accurate:
70 ls
59 less
56 ssh
36 cd
28 sudo
'course, the high occurence of "ssh" in that is a pretty clear indication
that I do a lot of stuff on other machines.
Cheers,
aj
--
Anthony Towns <aj at humbug.org.au> <http://azure.humbug.org.au/~aj/>
I don't speak for anyone save myself. GPG signed mail preferred.
"Security here. Yes, maam. Yes. Groucho glasses. Yes, we're on it.
C'mon, guys. Somebody gave an aardvark a nose-cut: somebody who
can't deal with deconstructionist humor. Code Blue."
-- Mike Hoye,
see http://azure.humbug.org.au/~aj/armadillos.txt
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list