Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "Are you sure you wish to execute `$(pbpaste)`? (Y/n) "
- [[ $REPLY =~ ^[Yy]?$ ]] && pbpaste | bash
- #!/bin/bash
- PBTEMP=$(mktemp -t pbtemp)
- pbpaste > $PBTEMP
- nano -t $PBTEMP
- source $PBTEMP
- rm $PBTEMP
Add Comment
Please, Sign In to add comment