6
1
How can you use sed to replace the entire first line of a file with that first line plus some additional text? For example, how can I append -foo
to a file that contains only one line.
testfile
contents start:
some-text
testfile
contents end:
some-text-foo