Hi
I have a sed command
sed -e "s/sub_date/=$(date +"%d/%m/%Y")/" sub_create_tmp
I want to substitute with the current date in dd/mm/yyyy format .
But the result is an error " cannot parse " .
Pls help .
sars
Hi
I have a sed command
sed -e "s/sub_date/=$(date +"%d/%m/%Y")/" sub_create_tmp
I want to substitute with the current date in dd/mm/yyyy format .
But the result is an error " cannot parse " .
Pls help .
sars
ok ..
i change the delimiter from "/" to "," (comma) .
It worked .
sars
A kludge
sed -e "s/sub_date/=$(date +\"%d%m%Y\")/" -e "s/\(.*\)=\"\(..\)\(..\)\(....\)\"\(.*\)/\1=\2\/\3\/\4\5/" sub_create_tmp