I have this script (it is actually a snippet from a bigger script).
#!/bin/sh if [ $actualsize -ge $MAXSIZE ]; then read dummy FILEPOINT <<EOF `dd if=myfile skip=8001 count=1 bs=1|od -x` EOF fi
When I run it, I get
./bugged.sh: 9: Syntax error: end of file unexpected (expecting "fi")
Apparently, the problem is the "EOF". Why does this happen and how can I achieve the same result (reading from myfile)?