There are a bunch of errors:
This is at least suspicious, I ma not sure whether stray '{}' are allowed in bash
Code:
while read l $myfile
equalizer2mplayer
No 'do' after while
Code:
while read f /dev/null 2>&1
No 'do' after while
Code:
if [ $? -ne 0 ] ; then
likeit "$f"
[ $? -eq 1 ] &fi
break
done
Test not preceeded by 'if'
'if' without 'fi' (or I don't understand the meaning of &fi, but I have never seen it before, and if it is possible to do such things, it is obfuscated code at best and I don't see any reason to use that here)
There might be more errors, but I am only a human being, not a script interpreter. Have also a look at the docs, see my signature.
It is easier to read if you indent your code.
jlinkels