Find out if file has changed

前端 未结 3 1683
耶瑟儿~
耶瑟儿~ 2021-02-05 18:14

I want to find out if a file has been modified since the last time my shell script was started, maybe by creating a boolean or something... Maybe it would be possible to save th

3条回答
  •  温柔的废话
    2021-02-05 19:17

    You can touch all files when you run your script. Then touch the script itself.
    Next time, you just find any files which is newer than your script.

提交回复
热议问题