Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $# -gt 0 ]; then
- (echo "$ "$@ && exec $@) | tee /dev/fd/2 | pbcopy
- else
- tee /dev/fd/2 | perl -pe 'chomp if eof' | pbcopy
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement