Hi There!
I'm trying to write a shell script which generates a random hexadecimal number and then appends it to the end of lines XX onwards of a certain file. XX is determined by a certain string on the previous line.
Thus for example, if the input file is
I search for the string "SEPARATOR" and starting with the next line, keep appending the hex strings. Thus, the output should be
I can generate the random hex strings fine, and also find the line number to start appending from, but im having problems with the actual appending.
What is the best way to do this? (The input files could have 10k+ lines)
Thanks!
-orno