File: duplicate_header_remover.pl

package info (click to toggle)
python-pairix 0.3.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 179,892 kB
  • sloc: ansic: 5,553; python: 1,207; sh: 602; perl: 464; makefile: 64
file content (12 lines) | stat: -rwxr-xr-x 140 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl

while(<>){
  if(/^#/) {
    if(!exists $header{$_}){
       $header{$_}=1;
       print;
    }
  } else {
    print;
  }
}