How can I track changes to a specific directory on UNIX? For example, I run some utility that creates some files during its execution. I want to know which files were created during one run. Is there an easy way to get this information? The problem is that:
- I cannot clear the contents of the directory after running the script
- Files created with a name with a hash as part. There is no way to get this hash from a script for later retrieval.
- Sometimes several scripts may be executed, I do not want to see files created by another process in the same folder.
Note that I do not want to know if the directory has been changed, as indicated here , I need file names that could ideally be grepped to match a specific pattern.
source share