Code:
stuart@stuart:~/music transfer$ ./grail\'s\ script.sh
./grail's script.sh: line 7: unexpected EOF while looking for matching `)'
./grail's script.sh: line 17: syntax error: unexpected end of file
stuart@stuart:~/music transfer$ cat grail\'s\ script.sh
#!/bin/bash
while read line
do
mfile=$(echo "${line##*/}")
wfile=$(echo "${mfile%%mp3}wav"
ffile=$(echo "${mfile%%mp3}flac"
ln -s "$line" "$mfile"
mplayer -cache 32 -ao pcm:file="$wfile" "$mfile"
lame -V2 "$wfile" "$ffile"
rm -vf *.wav *.mp3
mv -v "$ffile" $(dirname "$line")
done< <(find "$My_Music" -iname "*.mp3")
stuart@stuart:~/music transfer$
???
The mile long test to read it, or the literal test?
And looping is all I know, right now.
So... where does the input come from initially here? I can only partially tell as to what's going on. The bit i'd expect first is the last line. Very curious.
(I have quite literally just read a few 'bits' out a loaned library book, and thought i'd make a rough program while dipping in and out of it. My knowledge is scant or rudimentary... whichever the more polite
)