> is the very first line in your script

> #!/bin/bash or "###BEGIN SCRIPT" ?
> 
> #!/bin/bash
> must be on the very first line.


I confused you.  The script does not have ### lines in it at all.  I inserted 
them to take to make it clear that it was code.  Here is the script which does 
indeed start with the shebang:

#!/bin/bash
word="$1" export word work() {
  tar zcf $word.tar.gz $word
} export -f work
echo $word | parallel work

Reply via email to