[lug] VI help
Chip Atkinson
catkinson at circadence.com
Wed Jul 11 11:53:15 MDT 2001
:%s/^/yourstringhere/
Does the beginning of the line
:%s/$/yourendstringhere/
Shannon Johnston wrote:
> Hey All,
> I've got a 2,000 line document that I need to add a string to the
> beginning of every line. I know there's a way to do this easily in vi, I
> just don't know how. Can anybody help?
>
> While I'm at it, I have to add a different string to the end of every
> line.
>
> Thanks,
> Shannon
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list