I tried
stat -c %Y ./* 2>/dev/null | awk -v d="$(date +%s)" 'BEGIN {m=d} $0 < m {m = $0} END {print d - m}'
to find the age of the oldest file in the current directory, and I get a number in seconds with this line.
How do I get a number in days in that one line? Thank you