[lug] VI help

John Hernandez John.Hernandez at noaa.gov
Wed Jul 11 11:54:13 MDT 2001


at the beginning:

:%s/^/string/

at the end:

:%s/$/string/

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

-- 

  - John Hernandez - Network Engineer - 303-497-6392 -
 |  National Oceanic and Atmospheric Administration   |
 |  Mailstop R/OM12. 325 Broadway, Boulder, CO 80305  |
  ----------------------------------------------------



More information about the LUG mailing list