From b0db808311b46fb08c7a775baf13581195556e84 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 27 Jul 2024 19:36:16 +0400 Subject: noc: small update --- scripts/noc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/noc (limited to 'scripts/noc') 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 -- cgit v1.2.3