in reply to Merging two list with simple operation
Wrapped. Needs mods for *nix shells:
sort file1>file1.s & sort file2>file2.s & join file1.s file2.s | perl -anle"print$F[0],' ',$F[1]*$F[2]" | sort -n -k 2 > files.merged & del file1.s file2.s c:\test>type files.merged hello 1 FILE 2 today 6 yes 8 well 12
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merging two list with simple operation
by fanticla (Scribe) on Jul 31, 2010 at 18:31 UTC | |
by BrowserUk (Patriarch) on Jul 31, 2010 at 19:04 UTC | |
by fanticla (Scribe) on Aug 01, 2010 at 07:26 UTC |