Shell Script — Get all files modified after

前端 未结 9 2492
礼貌的吻别
礼貌的吻别 2020-12-12 09:57

I\'d rather not do this in PHP so I\'m hoping a someone decent at shell scripting can help.

I need a script that runs through directory recursively and finds all fil

9条回答
  •  温柔的废话
    2020-12-12 10:38

    This should show all files modified within the last 7 days.

    find . -type f -mtime -7 -print
    

    Pipe that into tar/zip, and you should be good.

提交回复
热议问题