rcl 412 B

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