diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-27 19:36:16 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-27 19:36:16 +0400 |
commit | b0db808311b46fb08c7a775baf13581195556e84 (patch) | |
tree | 9607ab3e3c60a1a6570b84c19346ad06b69b1c21 /scripts | |
parent | eee4d4f29ce0a4256f88c8b65d4ff233b635a26d (diff) |
noc: small update
Diffstat (limited to 'scripts')
-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 |