Hello all..New with scripting so please bear with me...I have a file which has a particular
$$START_DT=2006-01-01 several times in the file...so the file looks like
-----------------
dddd
$$START_DT=2006-01-01
ddffff
$$START_DT=2006-01-01
-----------------
etc...
Now, i want to find and replace every occurence of $$START_DT=2006-01-01 with $$START_DT=current_date
below is wat I have got
---------------------
#!/usr/bin/ksh
dt=`date +%Y-%m-%d`
echo $dt
sed "s/START_DT=*/START_DT=${dt}/g" file1.tst > file2.tst
---------------------
But this only replaces $$START_DT=2006-01-01 with $$START_DT=2006-10-19. I want to use wild chars with sed so tht even if the date changes my script will change the date to current date.
So basically I want to find/replace $$START_DT=yyyy-mm-dd with $$START_DT=current_date in format yyyy-mm-dd.
Any help appreciated.