123456789101112 |
- #!/bin/sh
- # BSD 3-Clause 2023-2024 by Kevin Bloom.
- #
- # Remove Comment Line (rcl)
- # This script is meant to be ran from ait(1). $1 is to be the comment
- # syntax for a _single line_ comment. For example, if you wanted to
- # uncomment a block of code in C, you'd selected a region and type:
- # M-x rcl //
- # and it will place // at the beginning of lines within the region.
- awk -v c="$1" '{ sub(c,"",$0); print $0 }'
|