|
Just some hints for now... the blank line is the trigger for record separation (as well as EOF). You can use awk. Collect up the data and when the trigger happens you can use printf in awk to format the output.
I'm just trying to get you to do the work, you'll learn more.
Does that help? (without me or someone writing the code for you)
|