Results for "Oneliner"

Bookmarks

Top-level pages

  • Bioinformatics OneLiner

    To remove all line ends (\n) from a Unix text file: sed ':a;N;$!ba;s/\n//g' filename.txt > newfilename_oneline.txt To get average for a column of numbers (here the...

    2201 days ago

Wire posts

  • Remove the blank space from a fasta file. perl -nlwe 'tr/ //d; print if length' fileName #Delete #Space #Fasta #Perl #Oneliner

    3605 days ago

  • zcat input_file.fastq.gz | awk 'NR%4==1{printf ">%s\n", substr($0,2)}NR%4==2{print}' > output_file.fa #fastaQ2fasta #fastaq #fasta #Oneliner

    3629 days ago

  • +16 more Wire posts

Bio-Scripts

Tags

  • rename all *.txt as *.bak: find . -name "*.txt" | sed "s/\.txt$//" | xargs -i echo mv {}.txt {}.bak | sh #Linux #Rename #Oneliner

    Tags: Linux, Rename, Oneliner

    3605 days ago

  • Remove the blank space from a fasta file. perl -nlwe 'tr/ //d; print if length' fileName #Delete #Space #Fasta #Perl #Oneliner

    Tags: Delete, Space, Fasta, Perl, Oneliner

    3605 days ago

  • +21 more Tags

Comments