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

[Sheflug] command as argument for grep



I have the following line

cat index.html |grep 'date %d-%b-%Y

which I thought would return all the lines in index.html that contained
today's date.  But it doesn't.  Can someone please remind me how to pass the
output of a command as an argument to a previous command.

Thanks

Chris Johnson

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.13 - Release Date: 16/01/2005


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.