On 18/06/10 12:05, Brett Parker wrote:
Why not:
find . -type f -printf "%10s %AY-%Am-%Ad %AH:%AM %p\n" | sort -n
Less pipes, less to go wrong, no need for the awk...
Ah, much cleaner, thanks!
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