I would like to ask you how can I add a set of strings containing three values each, one after the other, in the same file (e.g. CONV.inp)?I would like to type N number of lines with the respective values like here:...5.834,-54.05,0  7.728,-10.35,0  7.796,-14.85,0  7.871,-4.85,0  9.397,7.09,0  ...The last 0 never change. I would be able to type the two values of each line, and only and only when I finish, typing a random letter to quit from the loop in bash. ...echo -en '\n'echo 1echo -en '\n'read Aread Becho $A,$B,0 >> CONV.inpecho -en '\n'echo 2echo -en '\n'read Cread Decho $C,$D,0 >> CONV.inpecho -en '\n'echo 3echo -en '\n'read Eread Fecho $E,$F,0 >> CONV.inp ...Does anyone have an idea on how to implement a loop with these features?Thanks in advance!
Print several lines in the same file through a for loop in bash
bash;for