my_sub.sh 221 B

1234567891011121314
  1. #!/bin/sh
  2. if [ $# -ne 1 ] ; then
  3. echo "usage: $0 <param file>"
  4. exit
  5. fi
  6. file=$1
  7. while read line ; do
  8. if [ ! -z "${line}" ] ; then # ignore empty line
  9. ../bin/run_mul.sh ${line}
  10. fi
  11. done < ${file}