mirror of
https://github.com/sbrl/bin.git
synced 2018-01-10 21:33:46 +00:00
10 lines
200 B
Bash
Executable file
10 lines
200 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ "$#" -ne 2 ]; then
|
|
echo Send an entire directory over the network.
|
|
echo Usage:
|
|
echo " senddir directoryname listen_port_number"
|
|
exit
|
|
fi
|
|
|
|
tar cf - $1 | gzip | nc -l $2
|