blob: 80ab385413d62edf221d4b0c65072a7f00b9bb31 (
plain) (
tree)
|
|
#!/usr/bin/env bash
if [[ -z "$1" ]] ; then
echo "Usage:"
echo -en "\t"
echo "$(basename $0) <files/directories>"
exit 1
fi
# encode files suitable for copy&paste into other terminals
STR=$(tar cjf - $@ | base64; exit $PIPESTATUS) || exit $?
echo "cat << E=O=F | base64 -d | tar xj"
echo "$STR"
echo "E=O=F"
|