1
0
Fork 0
bin/recvdir

12 lines
215 B
Bash
Executable File

#!/usr/bin/env bash
if [ "$#" -ne 2 ]; then
echo Recieve an entire directory from the network and save it to the current directory.
echo Usage:
echo " recvdir ip_address port"
exit
fi
nc $1 $2 | tar xzf -