merging 2 files

Rob McMahon cudcv at warwick.ac.uk
Tue May 8 23:11:40 AEST 1990


In article <102007 at convex.convex.com> tchrist at convex.COM (Tom Christiansen) writes:
<In article <757 at sagpd1.UUCP> jharkins at sagpd1.UUCP (Jim Harkins) writes:
<|For example, I want to convert the list
<|
<|FooBar			
<|blaTZ
<|GRMblE
<|WhEe
<|
<|into
<|
<|FooBar	foobar			
<|blaTZ	blatz
<|GRMblE	grmble
<|WhEe	whee
<|
<Use
<
<    % perl -n foo.pl
<
<where foo.pl consists of:
<
<    chop;
<    print $_, " ";
<    y/A-Z/a-z/;
<    print $_, "\n";

I know perl is wonderful, and I do use it a lot, but I can't help feeling that

	tr '[A-Z]' '[a-z]' < file | lam file -s " " -

is easier (if you have `lam' I suppose, but there's an "if you have `perl'"
too ...).

BTW does anyone know what the state of rs, jot, and lam are ?  I find them all
very useful.

Rob
-- 
UUCP:   ...!mcsun!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv at uk.ac.warwick             INET:   cudcv at warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England



More information about the Comp.unix.questions mailing list