Results for "Oneliner"

Tags

  • Rename/number the multi-fasta file in ascending order. $ awk '/^>/{print ">" ++i; next}{print}' < Mix_assembly.fasta > Mix_assembly2.fasta #awk #oneliner

    Tags: awk, oneliner

    2536 days ago

  • Perl one-liner for beginners !

    I often use the following arguments to perl: -e Makes the line of code be executed instead of a script -n Forces your line to be called in a loop. Allows you to take lines from the diamond operator (or stdin) -p Forces your line to be called in a loop. Prints $_ at the end   This ...

    Tags: perl, oneliner, linux, handy, script, codes

    1378 days ago

  • Count number of fasta sequence $ awk '/^>/ { f = !a[$0]++ } f' aaaa.fa > bbbb.fa #count #fasta #oneliner

    Tags: count, fasta, oneliner

    973 days ago