bash: any way to reuse the last output?

David Jackson trashcan at mustardandrelish.com
Fri Jan 23 12:46:53 UTC 2004


>
> You could always save the output to a file and then use cat
> e.g. locate so > t.txt
> cat t.txt | grep whatever
or could do:

locate |tee filename.dat

which would send to you screen (stdout) and a file at the same time

followed by.

grep "stuff" filename.dat

maybe even
locate |grep stuff >file_name





More information about the fedora-list mailing list