#! /bin/csh
# NEW PASS value will change in every run
set NEW_PASS=`dyanamic generating password on everyrun`
echo $NEW_PASS
There is another conf file where we need to change the above generated password. In new.conf file corresponding line is pass=XYZ, Now above NEW_PASS value should be updated with new.conf file with replcing XYZ. I tried
sed -i -e "s/^pass*/pass=${NEW_PASS}/g" new.conf
But it's not working. Not sure if there is any issues with command syntax.