Linux Today: Linux News On Internet Time.





More on LinuxToday


Using an exclamation point (!) to reference events

Dec 25, 2012, 04:00 (0 Talkback[s])
(Other stories by Mark Sobell)

The C Shell history mechanism uses an exclamation point to reference events. This technique, which is available under bash and tcsh, is frequently more cumbersome to use than fc but nevertheless has some useful features. For example, the !! command reexecutes the previous event, and the shell replaces the !$ token with the last word from the previous command line.

Complete Story