In response to the current /. poll, Most Useful UNIX Tool: I have the following from my ~/.zhistory at work:
$ for cmd in sed grep cat find telnet init exit ; do echo -n $cmd= ; grep -c "$cmd " ~/.zhistory; done sed=85 grep=875 cat=762 find=126 telnet=15 init=32 exit=33
Which is interesting to me. I can explain some of the counts:
- I run
cat $file | (grep|sed|awk) | ...too often out of a good/bad habit. exitis small because I’ve boundxto exit (which itself is a bad habit; I should have just started usingControl-D.ssh>telnet- I don’t have root, so
initisn’t really used, and my regex isn’t careful enough to eliminatedisk_init. sedis mega-useful, but is usually the second command in a pipeline. I want to start usingperl -pemore.