have modified some files present in various folders in my ftp server. This was development environment. Now I have to find all files and directories modified or created yesterday to migrate to productions.
Is there any way (Linux command) to list only those files and folders created or modified yesterday in my ftp root tree?
i want command return such address:
ftp://myfto.co/Virtual/YouWave
ftp://myfto.co/Virtual/YouWave/1.txt
ftp://myfto.co/Virtual/YouWave/2
ftp://myfto.co/Virtual/YouWave/2/readme.txt
ftp://myfto.co/Virtual/YouWave/2/install.exe
ftp://myfto.co/Android/Sample
ftp://myfto.co/Java/Sample2
答案 0 :(得分:0)
find $1 -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head
find $1 -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head
find $1 -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head