How do I list/find all the files created on Sundays or Mondays?
How do I use the date parameter to display them?
Something like :
ls -f date + %a
or
find -type f | date +%A
or
find -type f -mtime -6
Answer
Something like this?
find -type f -printf '%Ta\t%p\n' | egrep "^(Sun|Mon)" | cut -f 2-
Note that this uses the file’s last modification time, not creation time (which, as far as I know, isn’t kept anywhere)
Attribution
Source : Link , Question Author : Community , Answer Author : Itay Perl