Top Nav

Prepend Text To Start Of Every Line

Prepend the text “foo” to the start of every line in file.

With sed:

With perl:

Taken from:

Prepend ## to every line in a text file

Email
Print