Skip to content

Instantly share code, notes, and snippets.

@mykelalvis
Last active December 25, 2015 07:29
Show Gist options
  • Save mykelalvis/6939137 to your computer and use it in GitHub Desktop.
Save mykelalvis/6939137 to your computer and use it in GitHub Desktop.
DAYS=
cd /home
for a in *
do
pushd ${a}
find . -mtime +${DAYS} > /tmp/${a}.find
L=$(wc -l /tmp/${a}.find)
# [ ${L} -gt 2 ] && zip -mrq /tmp/${a}.zip .
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment