add kvpairs2td
[hband-tools.git] / user-tools / nocomment
blobc960a81aa86f4d472bbbaaff7997099226583828
1 #!/bin/bash
3 true <<EOF
5 =pod
7 =head1 NAME
9 nocomment - remove comment lines from input stream
11 =head1 SYNOPSIS
13 nocomment [B<grep-arguments>]
15 =head1 DESCRIPTION
17 This command does not overwrite nor write files, just prints them without comments.
18 I.e. removing lines starting hashmark or semicolon.
20 =head1 SEE ALSO
22 grep(1)
24 =cut
26 EOF
28 grep -Ev '^[[:space:]]*(#|;|//|$)' "$@"