Hello, I have a problem with writing correctly a here document in rc. I wrote, say:
s = (1 2) for(i in $s) { mkdir -p $i cp POSCAR $i @{ cd $i ed POSCAR <<EOF >[2]/dev/null } } 2c $i . w q EOF and I wanted to have the 2nd line of individual POSCAR files replaced with the immediate value of $i. But the script doesn't do it, and I don't know if it can be modified in a simple way so that it did. (I could possibly use sed [ie. without a here document] but ...) If anyone can tell me... Thanks! Ruda