pattern文件:
antc
areq
bdos
bogt
……
igs.txt文件:
abmf 298.4725 16.2623
abpo 47.2292 -19.0183
ade1 138.6473 -34.7290
ade2 138.6473 -34.7290
adis 38.7663 9.0351
aira 130.5996 31.8241
ajac 8.7626 41.9275
albh 236.5126 48.3898
algo 281.9286 45.9588
……
实现目标:在igs.txt中查找并输出pattern文件中测站名对应的坐标
代码:
grep -f pattern igs.txt >test.txt
GMT作图显示为: