I have a remote directory with read access. I want to generate a list of files that changed since last iteration.
My idea is something like:
$ cp output.new output.old
$ ll > output.new
$ diff output.new output.old > list.files
The idea is that list.files have just the name and relative path of new files or files with different "modified timestamp" like this:
file1
files2
dir1/file3
dir2/file4
So I'm asking about diff and ls parameters.
diffing the outputs ofls -lis unlikely to be a robust way to do it - look at something based onrsync,inotify, or evenfind -mtime– steeldriver Jul 05 '18 at 14:43