我需要从任意数量的文件中提取第一列,并为缺少的条目打印带有空行的列。空白行部分有问题。像这样:
File1:
Alfa Something More stuff
Charlie Something More stuff
Delta Something More stuff
Echo Something More stuff
Foxtrot Something More stuff
File2:
Alfa Something More stuff
Bravo Something More stuff
Echo Something More stuff
Foxtrot Something More stuff
File3:
Alfa Something More stuff
Bravo Something More stuff
Charlie Something More stuff
Delta Something More stuff
Echo Something More stuff
Output:
FileName1 FileName2 FileName3
========= ========= =========
Alfa Alfa Alfa
Bravo Bravo
Charlie Charlie
Delta Delta
Echo Echo Echo
Foxtrot Foxtrot