SHARE
TWEET

Untitled

a guest Sep 21st, 2019 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. set -euo pipefail
  2. IFS=$'\n\t'
  3.  
  4. trap clear ERR
  5.  
  6. DIALOG_OK=0
  7. DIALOG_CANCEL=1
  8. DIALOG_HELP=2
  9. DIALOG_EXTRA=3
  10. DIALOG_ITEM_HELP=4
  11. DIALOG_ESC=255
  12.  
  13. exec 3<>file
  14. dialog --output-fd 3 \
  15. --clear \
  16. --title "Delete file" \
  17. --backtitle "Linux Shell Script Tutorial Example" \
  18. --yesno "Are you sure you want to permanently delete \"/tmp/foo.txt\"?" 7 60
  19.  
  20. echo "Never Gona Go Here"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top