Stupid shell stuff: prepending a character on each line

David Hummel lemmuh-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Sat Jan 9 19:13:56 EST 2010


On Sat, Jan 9, 2010 at 7:02 PM, Don Levey <lug-TwWeWiF2EGRi+ztankeudA at public.gmane.org> wrote:
>
> apparently, I been to prepend the "." to each line.

As usual, there are several ways to do this ... here is one:

$ sed 's/^/\./' file





More information about the Discuss mailing list