bash: any way to reuse the last output?
Ben Stringer
ben at burbong.com
Fri Jan 23 05:32:43 UTC 2004
On Fri, 2004-01-23 at 16:20, Herculano de Lima Einloft Neto wrote:
> Hello all,
>
> This happens all the time: after an intricate find, I decide
> to grep something out of that very same find, for instance. It
> would be nice to have some tweak to reuse the last output without
> having to run the command again. Anyone?
You could use the "script" command to save all shell session output to a
file, in case it is needed.
Or you could get into the habit of appending "| tee /tmp/<uniquename>"
each time you run a command you are likely to want to reuse output from.
Cheers, Ben
More information about the fedora-list
mailing list