dotfiles/.local/bin/scripts/absorb
2022-03-15 17:22:06 +01:00

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")"