![]() ![]() # for i in `ls -lrt | grep "May 12" | awk '' ` do cp -p $i* /opt/somedir done Run the below command to display the files for date “may 12” and copy to /opt/somedir directory. Now create a directory such as /opt/somedir which would be destination of the listed files. First check the files modified date using below command. Copy Files Based on Date Modified in Linuxġ. How can I copy the files based on modified date and time.Īnswer : Follow the below command to copy the files based on date modified in Linux. ![]() Question : I have lots of file in my one directory and want to copy the files based on date modified. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |