Let's suppose I have a bash script named bash.sh
in a folder /home/test/
and within this folder I also have 5 more files named as: file_1a.nc file_1b.nc file_2a.nc file_6a.nc file_6b.nc
.
I would like to copy bash.sh
5 times and the new copies need to have the same name as the .nc files, as follows:
file_1a_bash.sh file_1b_bash.sh file_2a_bash.sh file_6a_bash.sh file_6b_bash.sh
Any suggestion? Thanks