Mark Rogers wrote:
I'm actually now using: find . -type f -printf "%10s %AY-%Am-%Ad %AH:%AM:%AS %p\n" \ | grep -vE " ./(foo|bar|etc)/" | sort -n .. where foo, bar and etc are three directories I want to exclude from the results.
Next question: if I want to move "./foo/bar.png" into an "old" directory, retaining the path, is there a good way to do this (assuming the paths may not already exist)?
Ie, I want ./foo/bar.png to end up as ./old/foo/bar.png
Something like cpio -p --make-directories --preserve-modification-time old < name-list perhaps?
Hope that helps,