Perl One Liners

For example, say you have a tab delimited file of oligo sequences, with id in the 4th column, and sequence in the 5th column, and you want to convert it to a fasta file:

perl -nale 'print ">$F[3]\n$F[4]"' inputfile.txt

PerlRun (last edited 2009-06-12 17:56:55 by ChrisSeidel)