I have the directory and file structures like below.
path/A/1/a/11.txt path/A/1/a/12.txt path/A/2/a/21.txt path/A/3/a/31.txt
I want to copy these files to another path but one level above. Please note sub-directory "a" is not available in the new path.
path2/A/1/11.txt path2/A/1/12.txt path2/A/2/21.txt path2/A/3/31.txt
Since i have multiple directories and under which i have multiple files like these, i cannot simply use the command given below
cp -R path/A/1/a/*.txt path2/A/1/
Looking for inputs. Thanks