bash: any way to reuse the last output?
Leonid Mamtchenkov
leonid at leonid.maks.net
Fri Jan 23 14:09:54 UTC 2004
* Ben Stringer <ben at burbong.com> [24-Jan-2004 00:56]:
> > I'm afraid I fail to see how any of this is easier than scrolling up
> > once in the buffer, and adding a "| grep whatever".
>
> I'm presuming because the resource and time cost of running the original
> command is not something you want to repeat.
>
> Eg. if the find ran over 2TB of disk and took 15 minutes to complete.
>
> Or the output is time-volatile.
[root at gorilla tmp]# cd /home
[root at gorilla home]# time find >/dev/null
real 1m28.762s
user 0m0.130s
sys 0m0.670s
[root at gorilla home]# time find >/dev/null
real 0m48.801s
user 0m0.110s
sys 0m0.330s
Now, if I will copy-paste the output of find here (instead of
/dev/null), it will take you more then 48 seconds to scroll through it.
:)
--
Leonid Mamtchenkov.
http://www.leonid.maks.net
BOFH: Hard drive sleeping. Let it wake up on it's own...
More information about the fedora-list
mailing list