I thought I would pass along this helpful command correction technique. When, using Terminal.app, if I type a command, such as:
more ~/Library/init/tcsh/aliases.mineand then realize that instead of viewing the file I wanted to edit it. The quick way is to type
pico !*The "!*" is a history recall command for the tcsh shell that says "use the arguments 1 through end (generally the second through last words; argument 0 is the command itself) of the previously typed command". So
pico !*expands to
pico ~/Library/init/tcsh/aliases.mineand is executed. If you just want to see the substitution but not have it execute, append a ":p" (for "print") to the "!*", e.g.
pico !*:p[Editor's note: While this may be basic for most of the UNIX wizards, it's a good trick to know for the rest of us!]
Mac OS X Hints
http://hints.macworld.com/article.php?story=20020620230042344