Is it possible to append to a certain line?
I have a list of things in a file followed by some numbers
record1 2 3 5
record2 2 3 4
record3 3 5 2
I'd like to append another number to record2. How would I do this?
I was trying out sed and /a, but it appends the text in a new line, which I don't want.
Thank you much.
Another similar question if y'all know. How can I edit the 2nd number of record1 (for example)?