Adblock breaks this site

[Shell Scripting] Syntax Error

Discussion in 'Programming General' started by Pseudo123, Oct 10, 2011.

  1. Pseudo123

    Pseudo123 Apprentice
    Banned

    Joined:
    Dec 13, 2010
    Posts:
    682
    Referrals:
    0
    Sythe Gold:
    0
    [Shell Scripting] Syntax Error

    Below is my code:
    Code:
    echo ----- START -----
    for xx in `ls submissions/*`
    do
            filename=$xx
            echo " main:"$filename
    done
    echo ----- END -----
    
    Below is my error:
    Code:
    syntax error near unexpected token `do
    `do
    
    Any ideas?
     
  2. Nullware

    Nullware Guru

    Joined:
    Jan 30, 2007
    Posts:
    1,761
    Referrals:
    4
    Sythe Gold:
    0
    [Shell Scripting] Syntax Error

    Works fine for me using bash. What shell are you using?
     
  3. Pseudo123

    Pseudo123 Apprentice
    Banned

    Joined:
    Dec 13, 2010
    Posts:
    682
    Referrals:
    0
    Sythe Gold:
    0
    [Shell Scripting] Syntax Error

    That is really weird...
     
< Finding highest value in a HashMap issue: | Cheat Macro Community Project >


 
 
Adblock breaks this site