f1.sh
dweb=$1
web=$2
wget \
      --recursive \
      --no-clobber \
      --page-requisites \
      --html-extension \
      --convert-links \
      --restrict-file-names=windows \
      --domain $dweb \
      --no-parent \
         $web
f2.sh
web=$1
wget \
      --recursive \
      --no-clobber \
      --page-requisites \
      --html-extension \
      --convert-links \
      --restrict-file-names=windows \
      --no-parent \
         $web
I combine them in a new mynewfunc.sh file but it doesn't seem to work. f1.sh takes two args f2.sh takes one arg. How do I combine them using mynewfunc.sh without getting any errors so I can use one or two args using one .sh file.
 
    