dotfiles/.local/bin/scripts/absorb

6 lines
157 B
Plaintext
Raw Normal View History

2022-03-15 15:56:22 +00:00
#!/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")"