Guest User

Untitled

a guest
Apr 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. FILE=$(zenity --file-selection --title="Select a file...");
  4.  
  5. case $? in
  6.     0)
  7.         xterm -e nano "$FILE";;
  8.        
  9.     1)
  10.         echo "No file selected.";;
  11.     -1)
  12.         echo "No file selected.";;
  13. esac
Add Comment
Please, Sign In to add comment