Skip to content

Instantly share code, notes, and snippets.

@stripe-q
Created October 20, 2016 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stripe-q/067e9113dfe939ee66a3d143ebb471ab to your computer and use it in GitHub Desktop.
Save stripe-q/067e9113dfe939ee66a3d143ebb471ab to your computer and use it in GitHub Desktop.
최근 문서 찾기
#!/bin/zsh
read rcd # get root directory
find $rcd -type d -ctime +180 -prune -o -type f -name "*.ppt*" -print
#!/bin/zsh
echo "Enter root:"
read rcd
rcd=${rcd:-/d/Docs/Docs}
if [ -d "$rcd" ] # check the directory.
then
find "${rcd}" -type d -ctime +180 -prune -o -type f -name "*.ppt*" -print
else
echo "$rcd is not exsists."
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment