我有一個輸出這樣的事情如何通過避免標題標題grep一列?
#################################################################
# If you used AutoDock Vina in your work, please cite: #
# #
# O. Trott, A. J. Olson, #
# AutoDock Vina: improving the speed and accuracy of docking #
# with a new scoring function, efficient optimization and #
# multithreading, Journal of Computational Chemistry 31 (2010) #
# 455-461 #
# #
# DOI 10.1002/jcc.21334 #
# #
# Please see http://vina.scripps.edu for more information. #
#################################################################
Detected 4 CPUs
Reading input ... done.
Setting up the scoring function ... done.
Analyzing the binding site ... done.
Using random seed: -1786073016
Performing search ... done.
Refining results ... done.
mode | affinity | dist from best mode
| (kcal/mol) | rmsd l.b.| rmsd u.b.
-----+------------+----------+----------
1 -10.7 0.000 0.000
2 -10.4 0.460 1.612
3 -8.6 1.625 6.452
4 -8.1 1.515 5.404
5 -8.1 1.569 5.214
6 -7.9 1.616 6.148
7 -7.9 1.380 2.324
Writing output ... done.
但我想只有下列作爲輸出
-10.7
-10.4
-8.6
-8.1
-8.1
-7.9
-7.9
我是想在下面的命令
grep ' kcal/mol ' ./1/data01/lig2_noch.pdbqt.txt | awk '{print $2}' >>test1.txt
但線不成功,任何人都可以給我一個快速解決如何獲得上述這些類型的文件中只有2美元的數字?
爲什麼你使用'grep「可以千卡/摩爾」'?這將只打印標題,而不是跳過它們。 – Barmar