5 lines
157 B
Bash
Executable file
5 lines
157 B
Bash
Executable file
#!/bin/sh -e
|
|
# Put file content into clipboard and delete it
|
|
test -f "$1" || exit 1
|
|
cat "$1" | xclip -selection clipboard
|
|
mv -v "$1" "/tmp/$(basename "$1")"
|