Can someone explain what find -path
means?
I tried looking at the man page, but I do not understand why it works the way it does with the script I wrote.
find ! -path . -type d -printf '%T@ %P\n' | sort -nr | head -n3 | awk '{print $2}'
This returns to me the last three modified directories in the current folder Im in. However, when I remove the -path .
it only returns files to me, instead of folders. It's almost as if -type d
is ignored.