Deleting entire columns of from a text file using CUT command or AWK program -


i have text file in form below. me how delete columns 2, 3, 4, 5, 6 , 7? want keep 1,8 , 9.

 37.55       6.00      24.98       0.00      -2.80      -3.90   26.675  './gold_soln_cb_fraglib_controls_m1_9.mol2'                    'ethyl'  38.45       1.39      27.36       0.00      -0.56      -2.48   22.724  './gold_soln_cb_fraglib_controls_m2_6.mol2'  'pyridin-2-yl(pyridin-3-yl)methanone'  38.47       0.00      28.44       0.00      -0.64      -2.42   20.387  './gold_soln_cb_fraglib_controls_m3_3.mol2'  'pyridin-2-yl(pyridin-4-yl)methanone'  42.49       0.07      30.87       0.00      -0.03      -3.24   22.903  './gold_soln_cb_fraglib_controls_m4_5.mol2'  '(3-chlorophenyl)(pyridin-3-yl)methanone'  38.20       1.47      27.53       0.00      -1.13      -3.28   22.858  './gold_soln_cb_fraglib_controls_m5_2.mol2'  'dipyridin-4-ylmethanone'  41.87       0.57      30.53       0.00      -0.67      -3.16   22.829  './gold_soln_cb_fraglib_controls_m6_9.mol2'  '(3-chlorophenyl)(pyridin-4-yl)methanone'  38.18       1.49      27.09       0.00      -0.56      -1.63    7.782  './gold_soln_cb_fraglib_controls_m7_1.mol2'  '3-hydrazino-6-phenylpyridazine'  39.45       1.50      27.71       0.00      -0.15      -4.17   17.130  './gold_soln_cb_fraglib_controls_m8_6.mol2'  '3-hydrazino-6-phenylpyridazine'  41.54       4.10      27.71       0.00      -0.65      -4.44    9.702  './gold_soln_cb_fraglib_controls_m9_4.mol2'  '3-hydrazino-6-phenylpyridazine'  41.05       1.08      29.30       0.00      -0.31      -2.44   28.590  './gold_soln_cb_fraglib_controls_m10_3.mol2'  '3-hydrazino-6-(4-methylphenyl)pyridazine' 

try:

awk '{print $1"\t"$8"\t"$9}' yourfile.tsv > only189.tsv 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -