summaryrefslogtreecommitdiff
path: root/src/scripts/nocomment
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-02-10 00:02:10 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-02-10 00:02:10 +0400
commitd8808683653aa32cea7e96dcedb06b4a04ff6025 (patch)
treef04a4373b42c2e6ae0806c16ed0057f9627b7c64 /src/scripts/nocomment
first commit, version 0.1
Diffstat (limited to 'src/scripts/nocomment')
-rwxr-xr-xsrc/scripts/nocomment3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scripts/nocomment b/src/scripts/nocomment
new file mode 100755
index 0000000..9c62cc8
--- /dev/null
+++ b/src/scripts/nocomment
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sed -i "s/\s*#.*//g; /^$/ d" $1