I need your help with formate a txt file using bash/linux. The file looks like the following, it always has a line called Rate: Sth then it follows with the details in the v
Another solution: It just makes your input file into a script and then runs it:
sed 's/^Rate:/cat </; 1!s/^cat <
I assumed the line numbers are not part of the file.