I would like to batch copy and rename all files from a directory, recursively.
I have something like this:
/dir/subdir/file.aa
/dir/subdir/fileb.aa
/dir/filec.aa
and would like all files to be copied as this:
/newdir/1.xx
/newdir/2.xx
/newdir/3.xx
/newdir/4.xx
..
/newdir/nn.xx
How can I do this in bash?
Try sth. like this: