blob: 1d106caabb7832a75a90b9fb8fbf47a92081e30e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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 cj $@ | base64; exit $PIPESTATUS) || exit $?
echo "cat << E=O=F | base64 -d | tar xj"
echo "$STR"
echo "E=O=F"
|