I need an assistance in a scenario where i want to rename same files after copying in same folder.
Ex: lmn.cfg_201806, pqr.cfg_201806 (Filenames)
I copied these files from source path to target path.Now i want to rename these files from lmn.cfg_201806 to lmn.cfg
Using this flow for above mentioned activities.
After Copying files Output of ls command is ( where lmn.cfg_180918 and pqr.cfg_180918 are scrap files , we can ignore)
After Rename : Output of mv command
It Renames pqr.cfg_201806 to lmn.cfg (while it should rename mn.cfg_201806 to lmn.cfg ) and for next file it says file does not exist.