Could you please help me figure out how to do this?
Let's say, under this directory:
/home/user1/
there are 100 folders, the name of these folders are 1, 2, 3 ... to 100. In each folder, there are 26 files.
- The names of the files in folder 1 are 1a, 1b ... to 1z.
- The names of the files in folder 2 are 2a, 2b ... to 2z.
- The names of the files in folder 100 are 100a, 100b... to 100z.
How can I copy all the files ending with z to a new folder?