Re: bash: any way to reuse the last output?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> 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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux