Results for "sed"

Wire posts

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

    3613 days ago

  • replace a word in all files in a directory: grep -lr --exclude-dir=".git" -e "oldword" . | xargs sed -i "s/oldword/newword/g" #Replace #Word #Linux

    3523 days ago

  • #Remove all line that start with # file: $ sed '/^#/ d' filename #line #sed #linux

    2601 days ago

  • fastq to fasta convertor $ sed -n '1~4s/^@/>/p;2~4p' test.fastq > test.fasta #Convert #Fasta #Fastq #fa #fq

    2542 days ago

  • Add ">" in front of ids. sed -e 's/^/prefix/' file #Sed #Add #>

    2586 days ago

  • To add something to end of all header lines: $ sed 's/>.*/&WHATEVERYOUWANT/' file.fa > outfile.fa #Add #Fasta

    2562 days ago

  • To clean up a fasta file so only first column of the header is outputted:$ awk '{print $1}' file.fa > output.fa #Sed #Clean #Header #Fasta

    2562 days ago

  • Filter #blank #lines from a #fasta file using sed. $ sed '/^$/d' finalSample.fa > finalSample_filtered.fa #Linux #Filter #FASTA #SED

    2523 days ago

  • Append the string to fasta header. $ sed 's/>.*/&_Bacteria/' foo.in > out.fasta #Sed #Fasta #String #Append

    2504 days ago

  • Remove four beginning characters from each line of the file. $ sed 's/^....//' genbank.txt #Remove #Sed #Text

    2497 days ago