2

I have a file with multiple information in different columns to the same ID

first | x | y | z
second | x | y
third | x

I want something like this:

first | x
first | y
first | z
second | x
second | y
third | x
don_crissti
  • 82,805
  • You'll want to look into the awk command, Linux's built-in column-parser. – strakcy Jul 05 '16 at 19:43
  • 3
    Noticed after answering: Nearly exact dupe of http://unix.stackexchange.com/q/253954/127903 – Alex Stragies Jul 05 '16 at 20:42
  • @don_crissti: What is the procedure here? We flag as dupe, and delete our comments and answers? I saw, that you already edited the other one. – Alex Stragies Jul 05 '16 at 20:52
  • @don_crissti: I flagged as dupe too, and deleted my answer. The other Q has something similar to my awk solution as AA anyway, and a longer explanation for the trick you used :) – Alex Stragies Jul 05 '16 at 21:01

0 Answers0