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
This might work for you:
csplit -z -f 'temp' -b '%02d.txt' file /Rate/ {*}
This will produce files temp00.txt, temp01.txt...
If you only want the Rate line then;
Rate
sed -i '/Rate/!d' temp*.txt