gmgitx / BLOG_natural_science

精于勤,荒于嬉;行成于思,毁于随。 韩愈
GNU General Public License v3.0
0 stars 0 forks source link

awk #16

Open gmgitx opened 5 years ago

gmgitx commented 5 years ago

16

gmgitx commented 5 years ago

awk '$1>2 && $2=="Are" {print $1,$2,$3}' 5 toid=(awk '$1 == "${ID}" {print $2}' refer.txt) 6 #toid=(awk '/'${ID}'/{print $2}' refer.txt) awk '/\y2010TJ\y/' file

4 echo "$ID" 5 #nline=(awk '/'${ID}'/{print NR}' refer1.txt); 6 #echo "$nline" 7 toid=(awk '/\y'${ID}'\y/{print $2}' refer.txt) 8 #toid=(awk 'NR=="${nline}"{print}' refer2.txt); 9 #toid=(awk '$1 == "${ID}" {print $2}' refer.txt) 10 #toid=(awk '/'${ID}'/{print $2}' refer.txt) 11 echo "$toid" 12 #mv $file ${toid}.fq.gz 13 done

do ID=echo $file | cut -d '/' -f8 | awk -F'_L' '{print $1}'; nline=(awk '/'${ID}'/{print NR}' refer1.txt); toid=(awk 'NR=='${nline}'{print}' refer2.txt); mv $file $toid.fq.gz done

... do ID=echo $file | cut -d '/' -f8 | awk -F'_L' '{print $1}'; echo "$ID" toid=(awk '/\y'${ID}'\y/{print $2}' refer.txt) echo "$toid"

mv $file ${toid}.fq.gz

done