File: FastaToTbl

package info (click to toggle)
kissplice 2.6.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,752 kB
  • sloc: cpp: 8,783; python: 1,618; perl: 389; sh: 72; makefile: 18
file content (10 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
gawk '{
        if (substr($1,1,1)==">")
		if (NR>1)
                	printf "\n%s ", substr($1,2,length($1)-1)
		else 
			printf "%s ", substr($1,2,length($1)-1)
        else 
                printf "%s", $0
}END{printf "\n"}'  "$@"