Quantcast
Viewing latest article 1
Browse Latest Browse All 5

Answer by JJoao for Remove string from a particular field using awk/sed

Just a quick coffee break answer

perl -ne 's/\t.*?\tgene//            #remove \t F2 \t gene
      and s/\S*\tID=(.*?);.*/$1/     #remove \t Fn \t ID=.... keeping the id
      and print'  file

Viewing latest article 1
Browse Latest Browse All 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>