Skip to content

David B. Lyons

biologist at MSU Bozeman — chromatin, epigenetics, devbio

  • ORCID
  • google scholar
  • linkedin
  • DeLuca Lab at Brandeis

awk

use awk to split file on unique identifier

October 18, 2018October 20, 2018 | biolyons

if you want to split your file on unique identifiers in say col. 2, and your identifiers are, for ex., CGA, CGC, CGG, and CGT,  running this one-liner will generate 4 files, named as your identifiers:

awk ‘{print >> $2 }’ input    (don’t specify output)

Recent Posts

  • add new tracks to IGV server on the fly with php
  • determining strandedness of rna-seq libraries
  • getting a UK license coming from CA/NY
  • citation classics
  • download only the SRAs you want, from cmd line
My Tweets

Categories

  • my work
  • tech for biology
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • ORCID
  • google scholar
  • linkedin
  • DeLuca Lab at Brandeis
Proudly powered by WordPress | Theme: Sketch by WordPress.com.