Please don't change the posted scripts when you fix an error; it's very confusing. Better add an "EDIT: " line at the top of the post to let us know you have moved on from the posted script and post the new one in another post.
BTW, regards Code:
read ANS |
^ that should be
Code:
echo debug: ANS = "$ANS" i dont know, i dont use cases much. maybe a space between 1 and ) and 2 and ) like the ones above it ? is it still complaining about line 119 ? |
Quote:
|
Quote:
still chokin near bottom line 118 ./123456789_fedora11: line 118: syntax error near unexpected token `newline' ./123456789_fedora11: line 118: `... ' Code:
1:#!/bin/bash |
Quote:
Code:
c@CW8:~$ ./trash |
^
Code:
60: cat "$AUDIOPATH"/tempdir.lst | while read line; do #Read each line of the file and store the line to $line variable also 107 should be: echo debug: ANS = "$ANS" you need to clean up these ellipsises we use them to describe code that comes before or after but is not pertinent to the current issue. |
Quote:
http://www.linuxquestions.org/questi...69#post3866069 I fixed the echo also but not sure how to fix Code:
51:copy_mp3() { |
I have a question regarding this script....
When I run this script, create a playlist. I get a 0 bytes m3u file. (contains nothing) I read somewhere that there was an issue with mplayer and m3u files??? Maybe it was an older posting.. I could just have is save it as a .txt file? |
find /home/woot/Mp3 -name "*.mp3" -print > playlist.txt
This will work.....only scans from the mp3 folder |
^ line 17 doesnt redirect ls -v to the file name therefore it remains blank. m2dmhot hasnt gotten that for because s/he got other errors to worry about first.
@m2dmhot in Perl6, the 3-character ellipsis is also known as the "yadda yadda yadda" operator and, similarly to its linguistic meaning, serves as a "stand-in" for code to be inserted later. http://en.wikipedia.org/wiki/Ellipsis |
ok i removed the '...' in both locations
now it gives me unexpected end of file syntax error line 123 ???? |
hmm, thats interesting considering that the script has only 120 lines ?
maybe a blank line it doesnt like ? possibly because exit isnt defined as a function so it doesnt know what to do (but i think it should exit from the shell so i am not sure) ? |
Quote:
|
it was the colons at the parts that were not filled in yet.. THanks guys i will finish this up and post back if any probs
|
You should delete this code:
Code:
cat "$AUDIOPATH"/tempdir.lst | Code:
< "$AUDIOPATH"/tempdir.lst |
All times are GMT -5. The time now is 06:59 PM. |