John P. Donaldson wrote:
> 
> This is probably a stupid question but I'm relatively new to this. 

Only stupid if unasked.

I'd have to think about the first part (and I'm in a rush right now),
but I just went through this with sed.  Here's one that replaces the
word DATE with the output of date:

sed "s;DATE;`date`;g"

I use this is a Makefile for maintaining a web page.

> I'm trying to do the same thing with a sed command by changing all dates
> in a file to the current date. Right now my command looks like:
> 
> sed s/'[0123][0123456789]\/.*\/199[78]'/'18\/May\/1998'/g $1 > $2
> 
> I'd like to replace the '18\/May\/1998' with the date command.
> 
>  Any help would be greatly appreciated.
> 
> Thanks,
> John

-- 
Robert Wuest, PE             Empowered
Sirius Engineering Company          by
mailto:[EMAIL PROTECTED]      Linux

Reply via email to