1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/bin/sh input=$1 type=$2 check() if [ -n "$input" ]; then echo else echo "Please enter URL"; exit 0 fi echo $input echo $type #curl $input