Forum Moderators: bakedjake
ruby is my swiss-army knife, and is combined with just about the rest of /bin, /usr/bin, and /usr/local/bin. Every now and then I use something in /sbin, /usr/sbin, /usr/local/sbin, and /usr/X11R6/bin.
Oh, and lets not forget the tools in ~/bin, and ~/.aliases :)
history ¦ awk '{print $2}' ¦ sort ¦ uniq -c ¦ sort -n
and god this:
484 ls
400 cd
394 perl
288 man
233 less
186 apt-cache
170 mysql
123 locate
119 make
104 dpkg
95 rm
87 grep
71 ps
64 tail
63 jed
63 cvs
57 bc
56 sh
56 mv
45 cat
42 wget
38 host
35 eog
34 xlsatoms
34 mysqldump
34 gcc
33 cp
31 rsync
31 cvs
30 ssh
30 find
As you can see, I do most of my file management in the shell. I never quite got used to graphical file managers, even though I use nautilus regularly.
Besides file management, there's some development work (perl, cvs, man, gcc, make), some server updates (rsync, ssh) and some maintenance (apt-cache, dpkg, mysqldump)
BTW, I keep a history of 5000 commands, hence the high numbers.
I never got to grips with sed, what's it good for in everyday use?
I use it mostly for transforming text files. For example, one script processes an error log from a major database application. Once grep is done, sed processes the results, turning them into a nice simple html page with the errors in an ordered list.
(sed basically allows you to take "vi" commands, write 'em out in a text file, and use that file to transform whatever file(s) you want.)
GNU Wget is a freely available network utility to retrieve
files from the World Wide Web, using HTTP (Hyper Text
Transfer Protocol) and FTP (File Transfer Protocol), the
two most widely used Internet protocols. It has many use-
ful features to make downloading easier, some of them
being...
sed basically allows you to take "vi" commands
Actually it's the inverse. In the old times the only way to edit a text file was with ed (not sed), until Billy Joy got sick of dealing with unbuffered lines and devised a VIsual ed :)
Oh, and...
ogg123
dselect
ssh, ssh-add, cvs
make install
locate
My countless bash scripts based on wget
<added>I stand corrected.</added>
Some more:
octave, maxima
python as a calculator
cal, calendar, date
fortune
[edited by: Duckula at 1:20 pm (utc) on Aug. 9, 2003]
When the first common teletypes (monochrome text-only monitors common in the 70s and early 80s) appeared, you could programmatically control a viewing area of more than one line, so ex/vi appeared. Ex was little more than a beefed up ed, and vi was the corresponding visual superstructure, the display engine, if you want. You could still run ex in commandline mode, just as ed, if you had to, but running vi on a paper terminal used up a lot of paper :-)
Sed was a variation of ed, and thus independent of ex/vi. Ed was actually rather powerful, especially wrt to search and replace functions, so when the pipe was invented back in the 70s (must have been Unix v4 or v5, because it was definitely there in v6), the ed internals was modified to work as a filter, hence sed, Stream EDitor. Given it was invented for use in pipes, in wonder why they didn't opt for ped, Pipe EDitor, but they didn't.
Grep is also a child of ed. The command in ed for finding and printing lines that match a regular expression is (literally) "g/RE/p" where RE is the Regular Expresssion. Grep is just that part separated from the ed interface. Later the extended grep (egrep) and the fixed string (fgrep) joined the family. Grep was also a part of Unix v6, so it is also from one of the very early version of Unix.
René
Jordan