mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
12 lines
332 B
Bash
Executable file
12 lines
332 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 Shows recieving progress via pv. Note that the progress indicator is before compression has been removed.
|
|
echo Usage:
|
|
echo " recvdir ip_address port"
|
|
exit
|
|
fi
|
|
|
|
nc $1 $2 | pv | tar xzf -
|
|
|