File: vcffirstheader

package info (click to toggle)
freebayes 1.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,984 kB
  • sloc: cpp: 125,778; ansic: 4,581; sh: 1,084; python: 672; asm: 271; javascript: 94; lisp: 85; makefile: 37; perl: 27
file content (16 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python3

import sys

header=True
for line in sys.stdin:
    if line.startswith('##'):
        if header:
            print(line.strip())
        continue
    elif line.startswith('#'):
        if header:
           print(line.strip())
           header=False
        continue
    print(line.strip())