I have this script to divide a file over a 100000 or even more in 50000 lines.desc()                                                    {                                                      echo $1 $2|awk '{d=$1;}                                BEGIN {a=1;b=0}                                           { f=d0a;                                               while ((getline x<d)>0)                                  { print x>>f.txt                                       if (b++>=50000)                                           {                                                        close(f);b=0;a++;f=(a<10)?d0a:f=da               }                                                 }                                                  }                                                  END {print Terminado ... ! }'                        }                                                    if [ -f $1 ]; then                                             desc $1 $2                                     fi                                                     When I execute it I got this error message:sh-3.2$ parte.sh pa.txt                                 : command not found                                     '/parte.sh: line 2: syntax error near unexpected token `'/parte.sh: line 2: `desc()                             sh-3.2$                                                 Can anyone help to solve it?
command not found and syntax error near unexpected token
shell script