giftalpine.blogg.se

Perl grep regex file eec
Perl grep regex file eec










perl grep regex file eec

txt | less # cuts out the fth field (counts from 1) # can also do this with 'scut', which also allows you to re-order the columns # and break on regex tokens if necessary. # Let's try doing that with 'cut'Ĭut -f '1,4,5' < red +blue_all.

perl grep regex file eec perl grep regex file eec perl grep regex file eec

# hmm - can you tell why we got such a high compression ratio with this file? # OK, suppose we just wanted the fields 'ID' and 'Blue' and 'Red' # how do we do that? # cut allows us to break on single characters (defaults to the TAB char) # or exact field widths. # how big is the decompressed file (and what is it called? # how compressed was the file originally? # take a look at the file with 'head' # lets play with a gene expression dataset:












Perl grep regex file eec