Sunday, January 17, 2021

[osx command] file or folder monitoring

1. command fswatch [file or folder to monitor] | xargs -I {} echo $(date) {} >> [log file name] 2. explanation fswatch : file monitoring program xargs -I {} [command] : replace {} with input string echo [string] >> [file name] : add string to file

[osx command] file or folder monitoring

1. command fswatch [file or folder to monitor] | xargs -I {} echo $(date) {} >> [log file name] ...