blob: 0144fe5b0d87c0eb051d299244b75c6f888520b2 (
plain) (
tree)
|
|
#!/bin/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 cj $@ | base64; exit $PIPESTATUS) || exit $?
echo "cat << E=O=F | base64 -d | tar xj"
echo "$STR"
echo "E=O=F"
|