dotfiles/.local/bin/scripts/absorb

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