Answers for "combine all lines with same value of a column unix"

0

combine all lines with same value of a column unix

cat FILENAME | perl -e 'foreach $Line (<STDIN>) { @Cols=($Line=~/^\s*(\d+)\s*(.*?)\s*$/); push(@{$Link{$Cols[0]}}, $Cols[1]); } foreach $List (values %Link) { print join("\t", @{$List})."\n"; }'
Posted by: Guest on August-03-2020

Code answers related to "combine all lines with same value of a column unix"

Python Answers by Framework

Browse Popular Code Answers by Language