merging 2 files

Leslie Mikesell les at chinet.chi.il.us
Sun May 6 05:33:50 AEST 1990


In article <757 at sagpd1.UUCP> jharkins at sagpd1.UUCP (Jim Harkins) writes:
>For example, I want to convert the list

>FooBar			
>blaTZ
>into
>FooBar	foobar			
>blaTZ	blatz

>(from this second list it's trivial to create lines of sed commands like
>'/FooBar/foobar/g', and there are around 800 words in my list)

>So, has anyone got any advice (outside of having a flunky use vi :-)?

How about having someone who isn't a flunky use vi, since the single
command:
   :%s/.*/& \L&/
will do exactly what you ask, and a trivial variation would give the final
output you want.


Les Mikesell
  les at chinet.chi.il.us



More information about the Comp.unix.questions mailing list