This is my code:
#!/bin/bash echo "Type in your file" read file sed -r -e 's/(^(^#)*$) ; s/(^(^;)*$) ; s/(^(^$)*$) ; s/(^(^/)*$) ; s/(^(^ )*$)' $file
This is the output when I give it a file:
sed: -e expression #1, char 31: unknown option to `s’
Why am I getting this error? Would you suggest another way to do it?
Thanks in advance