Could you please help me out?
I have multiple files in a folder contain string {env} in a filename , I need to replace {env} with value of current environment?
so I got the current environment details as :
env_details = "dv"
and now I was to change filename , below folder have multiple files:
/home/harshit/cofig/*
cat_{env}.config
mbr_details_{env}.config
acc_num_{env}.config .
....
now I want to replace {env} with "dv" as below:
/home/harshit/cofig/*
cat_dv.config
mbr_details_dv.config
acc_num_dv.config
....
could anyone please help me out how to achieve this ?