Results for "Grep"

Wire posts

  • #Extract a #sequence from #multi-fasta file: $ perl -ne 'if(/^>(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file

    2624 days ago

  • Show before(B) and after(A) the matching region $ grep -B 3 -A 2 foo README.txt #Linux #Tricks #View #Grep

    2574 days ago

  • Count the number of bases in fasta file. grep -v ">" file.fasta | wc | awk '{print $3-$1}' #Fasta #Count #Bases

    2522 days ago

  • Linux command to find the file contains a string "LOCK_EX": grep -Ril "LOCK_EX" / #Root #Find #Linux #Grep #search

    2363 days ago

  • #GFA to #Fasta file conversion. $ grep '^S' example.gfa |awk '{print ">"$2; print $3}' > example.fa

    2288 days ago

  • #Extract all the files from a #directory and #sub-dir with #pattern. $ find TrimmedDir -type f | grep "L_" | xargs -i cp {} .

    2244 days ago

  • Glob multiple files in Linux with Perl. my @soundfiles = grep {/\.(wav|mid|mp3|rm|ogg)$/i} glob("*"); #Perl #Linux #Glob

    2242 days ago

  • Extract fasta with Ids. $ perl -ne 'if(/^>(\S+)/){$c=grep{/^$1$/}qw(id1 id2)}print if $c' fasta.file #extract #fasta #sequence #ids

    2224 days ago

  • du -sh * | sort | grep "G" #List size of all the directory #Size #List #Directory #Linux

    2113 days ago

  • Get the secondary hists reads count from SAM awk '{ print $2 }' out.sam| grep "2048" | wc -l #SAM #BAM #Secondary #Hits

    1851 days ago