diff options
-rwxr-xr-x | scripts/noc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/noc b/scripts/noc new file mode 100755 index 0000000..575566c --- /dev/null +++ b/scripts/noc @@ -0,0 +1,7 @@ +#!/bin/sh + +# Remove empty lines and all the comments starting with "#" + +for file in "${@}"; do + sed -i "s/\s*#.*//g; /^$/ d" "${file}" +done |