I've written a sed interpreter script:
#!/usr/bin/sed -E -f
s/ +/_/g
s/[.':]//g
s/&/and/g
However, when I run it:
$ echo "Bob Dylan" | shscrub.sed
sed: unknown option --
usage: sed [-aEnru] command [file ...]
sed [-aEnru] [-e command] [-f command_file] [file ...]
I need the -E option because I'm using the Extended Regular Expression syntax '+'.
Any ideas what I'm doing wrong?
Edit
A workaround:
#!/usr/bin/sed -f
s/ \{1,\}/_/g
s/[.':]//g
s/&/and/g
But, I'd still like to know how I can pass two parameters in the shebang (#!) line.