How to copy the filename alone from a directory?

Hi All,

As i'm new to this i need help. I want to copy all the filenames in a directory and also it should get arange in the order recent modified.

Welcome to the forum ..

Go through man cp and man ls man pages in your machine..

Have a try with your requirement and get back to us with your tries ..

also man find command with -exec option.

for example, find out the files which are modified in 10 days.

find /PATH -type f -mtime -10