Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo Folder name: "${PWD##*/}"
  4. if [ "${PWD##*/}" == "sandbox" ]
  5. then
  6. echo The folder is indeed named sandbox. Deleting all files. # Please confirm.
  7. # read -p "Are you sure? " -n 1 -r
  8. # echo # (optional) move to a new line
  9. # if [[ $REPLY =~ ^[Yy]$ ]]
  10. # then
  11. rm *
  12. # fi
  13. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement