I am trying to replace a string in my perl script from the command line. This is what I tried. It ran and created a backup file too but the string was not replaced
perl -p -i.bak -e "s/CAST(CAST(hs_date AS DATE FORMAT 'YYYYMMDD') AS +CHAR(08)) as hs_date/FORMAT_DATE(hs_date, 'YYYYMMDD') as hs_date/g;" +HealthList
Is it because of the length or spaces?
TIAIn reply to replace string from Command Line by pragovnj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |