Extremely geeky meme from [livejournal.com profile] scimon

Apr. 16th, 2008 01:20 pm
purplecat: Hand Drawn picture of a Toy Cat (programming)
[personal profile] purplecat
louiseadennis$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s \n",a[i],i}}'|sort -rn|head
  175   cd 
   89   ls 
   47   less 
   38   xemacs 
   37   perl 
   19   cvs 
   16   exit 
   15   ss 
   12   pdflatex 
   12   SyntaxBNF-yl-parser-verbose 

(no subject)

Date: 2008-04-16 12:53 pm (UTC)
From: [identity profile] foradan.livejournal.com
I get:
5 19:30
5 10:43
4 12:05
3 21:04
3 19:31
3 15:35
3 11:50
2 14:48
2 14:40
2 14:28

Perhaps this is a bash centric meme, and tcsh history gives the command in a different column. Ah yes, this works better:

history | awk '{a[$3]++} END{for(i in a){printf "%5d\t%s \n",a[i],i}}' | sort -rn | head

20 ./amhd
13 make
9 cd
7 python
6 ssh
5 svn
3 ls
3 history
2 gdb
1 scp

Running the same thing in the other terminal window gives me:

82 python
6 svn
5 cd
3 grep
2 ssh
1 rm
1 history

(no subject)

Date: 2008-04-20 08:43 am (UTC)
From: [identity profile] jhgowen.livejournal.com
RennerGroup:~ jhgowen$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s \n",a[i],i}}'|sort -rn|head
108 ~/bin/convertCoords
65 tail
50 pico
37 ~/bin/DensEl
32 rm
31 touch
31 cp
29 edit
28 ls
28 cd

(no subject)

Date: 2008-04-20 06:25 pm (UTC)
From: [identity profile] jhgowen.livejournal.com
well, I am running a Mac, so mostly I operate in the GUI. The main thing I drop down to the BSD Unix underpinnings and the bash shell for is to run a tightbinding atomistic simulation, which requires pico, tail, rm, touch, cp, the two ~/bin/ commands, and edit which opens any textfile in a GUI text editor. So I rarely have to cd or ls.

tap completion

Date: 2008-04-21 11:37 am (UTC)
From: (Anonymous)
Strange, as the GUI is generally reckoned to be the strong point of the Mac. But for that specific operation, you're probably right.

Not sure how you would test in general that GUI and command line are faster than each other, as one does very different things with each. No GUI way to run a tightbinding simulation, no CLI way to process STM images.
Text-file editing possibly, then you get into the realms of personal taste. For me "edit foo.txt" on the CLI then editing in Text Wrangler is more efficient than using pico, but my friend Dave, who pretty much lives in vi and emacs, would tell me that he can edit text much faster with them.

James

P.S. If you have large bibliographies, check out BibDesk.

Profile

purplecat: Hand Drawn picture of a Toy Cat (Default)
purplecat

February 2026

S M T W T F S
123456 7
89 101112 13 14
1516 1718 1920 21
22232425262728

Tags

Active Entries

Style Credit

Expand Cut Tags

No cut tags