我有一些字符串如殼得到用awk
1000 AS34_59329 RICwdsRSYHSD11-2-IPAAPEK-93/ifshk5/BC_IP /項目/ T1 1073/T11073_RICekkR/Fq中/ AS34_59329/111220_I631_FCC0E5EACXX_L4_RICwdsRSYHSD11-2-IP AAPEK串-93_1.fq.gz/ifshk5/BC_IP/PROJECT/T11073/T11073_RICekkR/Fq上/ AS34_5932 9/111220_I631_FCC0E5EACXX_L4_RICwdsRSYHSD11-2-IPAAPEK-93_2.fq.gz/ifshk5/ BC_IP/PROJECT/T11073/T11073_RICekkR/Fq上/ AS34_59329/clean_111220_I631_FCC0E5EACXX_ L4_RICwdsRSYHSD11-2-IPAAPEK-93_1.fq.gz.total.info 11.824 0.981393 43.8283 95.7401 OK
我打算用awk獲得AS34_59329
dirname= echo "$myline" | awk -F ' ' '{print $2}'
但它不能正常工作。