cl 393 B

123456789101112
  1. #!/bin/sh
  2. # BSD 3-Clause 2023-2024 by Kevin Bloom.
  3. #
  4. # Comment Line (cl)
  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. # comment out a block of code in C, you'd selected a region and type:
  8. # M-x cl //
  9. # and it will place // at the beginning of lines within the region.
  10. awk -v c="$1" '{ print c $0 }'