Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- FILE=".DS_Store"
- echo "All \"$FILE\" files will be deleted, do you wish to continue? (y/n)"
- read ANS
- if [ "$ANS" = "y" ] ; then
- echo "Removing files..."
- find . -name "$FILE" -print0 | xargs -0 rm -rf
- echo "Done."
- else
- echo "Program terminated."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement