opkour.blogg.se

Ubuntu find files by date
Ubuntu find files by date







ubuntu find files by date

# 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ġ.

ubuntu find files by date ubuntu find files by date

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.









Ubuntu find files by date