Guest User

Untitled

a guest
Jan 23rd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. read -p "Are you sure you wish to execute `$(pbpaste)`? (Y/n) "
  4. [[ $REPLY =~ ^[Yy]?$ ]] && pbpaste | bash
  5.  
  6. #!/bin/bash
  7.  
  8. PBTEMP=$(mktemp -t pbtemp)
  9. pbpaste > $PBTEMP
  10. nano -t $PBTEMP
  11. source $PBTEMP
  12. rm $PBTEMP
Add Comment
Please, Sign In to add comment