bash: any way to reuse the last output?
c q
rsnic at hotmail.com
Fri Jan 23 06:06:24 UTC 2004
On Fri, 23 Jan 2004 03:36:31 -0200, Herculano de Lima Einloft Neto wrote:
> Justin Churchey wrote:
>> Have you tried piping it to the grep comand?
>>
>> For instance,
>>
>> find file director | grep whateveritisyourlookingfor
>
> Well, to do that I would have to run the command again, now wouldn't I?
> :)
>
> Thanks,
> --
> Herculano de Lima Einloft Neto
You could always save the output to a file and then use cat
e.g. locate so > t.txt
cat t.txt | grep whatever
More information about the fedora-list
mailing list