Created
October 20, 2016 11:36
-
-
Save stripe-q/067e9113dfe939ee66a3d143ebb471ab to your computer and use it in GitHub Desktop.
최근 문서 찾기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
read rcd # get root directory | |
find $rcd -type d -ctime +180 -prune -o -type f -name "*.ppt*" -print | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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