Member Site Forums Rosetta 3 Rosetta 3 – General how to cluster loop? Reply To: how to cluster loop?

#4808
Anonymous

    Thank you very much for your so kind advices. I am still a little bit confused about this command:

    for each PDB
    head -1 $PDB | tail -100 > looponly_$PDB
    end

    I store above three lines in a file and then run it in the terminal, it is said:

    ./00: line 1: syntax error near unexpected token `PDB’
    ./00: line 1: `for each PDB’

    I also tried the following command in terminal directly:

    head -1 $PDB | tail -10 > looponly_$PDB

    and it is said that:

    PDB: Undefined variable.

    How to solve this?
    THX