Ok will try that .. Love this forum so quick and guys so friendly
|
Quote:
BTW, it is safest to use double quotes around variables that may have whitespace in them. That way you ensure their value is not parsed into multiple whitespace-separated words by the shell. |
OK still chuggin along here bit by bit but it gives me error near the end any ideas??
Code:
#!/bin/bash '/12345_2_woot.txt: line 87: syntax error near unexpected token `in '/12345_2_woot.txt: line 87: ` case "$ANS" in |
^ not quite sure but are you allowed to have a blank line after the case ?
rite after you read ANS can you do something like Code:
debug: ANS = "$ANS" ____________________ http://tldp.org/LDP/abs/html/testbranch.html maybe this will work Code:
... |
Quote:
Code:
cat "$AUDIOPATH"/tempdir.lst | while read line; do #Read each line of the file and store the line to $line variable |
still chokin????
Code:
#!/bin/bash ./123456789_fedora11: line 63: ` else' |
Missing [[ ]] and ";" in
Code:
if [[ $line == $DONKEY ]]; then |
Go back to the previous "then" on line 61. You forgot the ; between the if clause and the then keyword. You also forgot the test command: [[ and ]]. Line 61 should read:
Code:
if [[ $line == $DONKEY ]]; then You can also reform your while read loop to: Code:
while read line; do Finally, you have an unterminated while loop beginning on line 87. Unless, of course, this is only a code fragment, which is suggested by the ... on line 106. |
Quote:
im not catching what your saying?? Code:
copy_mp3() { |
Quote:
|
^ at the end of an if,then,else statement you need to fi so that bash knows where the conditional statement ends.
_____ i see from your last edit 5 mins. ago, you did it rite. |
Quote:
Code:
... ./123456789_fedora11: line 119: `...' |
This script looks pretty cool.
Can you post it when you get up and running? I am trying to do something similar to this. |
can you print it with line numbers
Code:
grep -n . script.ksh Quote:
in this instance | means or. |
Quote:
Code:
1:#!/bin/bash |
All times are GMT -5. The time now is 06:48 AM. |