Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'better use of history' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
better use of history
Authored by: muddmatt on Jul 26, '05 03:12:54PM
if you are going to try a bunch of differnet search strings, it's quick

A better idiom:

% grep foo /path/to/file.txt
% grep bar !$
"!$" means "last argument of the previous command". See the bash manpage for other (highly useful) history tokens.

[ Reply to This | # ]
better use of history
Authored by: rootpoot on Jul 26, '05 09:13:35PM
You can also use
<esc> .
to access the last argument.

[ Reply to This | # ]