I have a file that looks like this:
name:height:weight
janice:120:209
mark:150:349
ray:90:204
elle:140:129
----------
I want to write a sed script that adds a line containing ~ at the beginning + end of the file and before and after every person entry, like this:
~
name:height:weight
~
janice:120:209
~
mark:150:349
~
ray:90:204
~
elle:140:129
~
----------
~
My current script and output look like this, but I dont know how I can add '~' between every person entry:
1i ~
$a ~
~
name:height:weight
janice:120:209
mark:150:349
ray:90:204
elle:140:129
----------
~