Can anyone enlighten me how to align the following two files by their leading 6 digit numbers?
I expect only those lines to be aligned where the leading 6 digit match exactly. The lines should also
be aligned in case there is a trailing comment following the digits.
I feel like I tried everything to get a reasonable alignment for the following two text file examples but with no satisfying results
(grammar with leading 6 digits, first 6 columns; line weight for leading 6 digits set to high; etc. ...).
Thanks!
I expect only those lines to be aligned where the leading 6 digit match exactly. The lines should also
be aligned in case there is a trailing comment following the digits.
I feel like I tried everything to get a reasonable alignment for the following two text file examples but with no satisfying results
(grammar with leading 6 digits, first 6 columns; line weight for leading 6 digits set to high; etc. ...).
Thanks!
Code:
FILE_1.TXT 000001 comment 000002 000003 000004 comment 000005 000006 comment FILE_2.TXT 000002 000004 000006 000008 EXPECTED ALIGNMENT 000001 comment 000002 000002 000003 000004 comment 000004 000005 000006 comment 000006
Comment