我有两个文件,需要file1
从file2
.
例如:
文件 1
LOCAR0013LOCBLKAR0013LOCDEFAR0013LOC024500230012BLKAR0013 7Q3G013 003340000000000000
LOCAR0030LOCBLKAR0030LOCDEFAR0030LOC091500960004BLKAR0030 M20G010 000165000000000000
LOCAR0031LOCBLKAR0031LOCDEFAR0031LOC024500230012BLKAR0031 M21G011 002240000000000000
文件2
LOCAR0013LOCBLKAR0013LOCDEFAR0013LOC024500230012BLKAR0013 7Q3G4GR 000040000000000000
LOCAR0030LOCBLKAR0030LOCDEFAR0030LOC091500960004BLKAR0030 M20GTRS 000105000000000000
LOCAR0031LOCBLKAR0031LOCDEFAR0031LOC024500230012BLKAR0031 M21G2AS 000040000000000000
新文件的预期输出
LOCAR0013LOCBLKAR0013LOCDEFAR0013LOC024500230012BLKAR0013 7Q3G4GR 003340000000000000
LOCAR0030LOCBLKAR0030LOCDEFAR0030LOC091500960004BLKAR0030 M20GTRS 000165000000000000
LOCAR0031LOCBLKAR0031LOCDEFAR0031LOC024500230012BLKAR0031 M21G2AS 002240000000000000
我在 Unix / Solaris 系统上有这个。