[kwlug-disc] my new favourite command

Kyle Spaans 3lucid at gmail.com
Thu Dec 2 22:34:05 EST 2010


On Thu, Dec 2, 2010 at 10:26 PM, unsolicited <unsolicited at swiz.ca> wrote:
> I can see this as you work through a 'process'. But does argn included stdin
> / out / err tokens?
>
> Trivial example:
>
> sort </etc/passwd >/etc/passwd.srt
> less !$
>
> and !$ above would be /etc/passwd.srt?

Just tried it, and it does. The shell picks out the last token from
the previous command, so it could even be a flag rather than a
filename.



More information about the kwlug-disc_kwlug.org mailing list