7 header - Echo the input stream up to the first empty line (usual end-of-header marker)
9 body - Skip everything in the input stream up the the first empty line (usual end-of-header marker) and echo the rest
13 header I<FILE> [I<FILE> [I<FILE> [...]]]
17 body I<FILE> [I<FILE> [I<FILE> [...]]]
31 push @ARGV, '/dev/stdin';
34 for my $idx (0..$#ARGV)
36 my $path = $ARGV[$idx];
37 open my $fh, '<', $path;
41 print if $mode eq 'body' and $state eq 'body';
42 $state = 'body' if /^\r?\n?$/;
43 last if $state eq 'body' and $mode eq 'header';
44 print if $mode eq 'header' and $state eq 'header';