Search Results

Search: Posts Made By: stack
6,583
Posted By CarloM
You could certainly do it in awk, but it's easier...
You could certainly do it in awk, but it's easier to just use join:
join -t, -j1 -a 1 -a 2 file1 file2

(unless I'm forgetting something, which I usually do :p)
6,583
Posted By birei
Hi stack, Using 'Perl': $ cat file1 ...
Hi stack,

Using 'Perl':


$ cat file1
111,Mike,Stipe
222,Peter,Buck
333,Mike,Mills
$ cat file2
222,Mr,Bono
444,Mr,Edge
$ cat stack.pl
use warnings;
use strict;

die qq[Usage: perl $0...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 09:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy