summaryrefslogtreecommitdiff
path: root/src/scripts/nocomment
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-02-18 17:36:51 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-02-18 17:36:51 +0400
commitd1e8f727620479a98ad568e8e3dc98e84bef45b2 (patch)
tree56a8dedb74e9e8a6f8692027e3eadd201eb37c5f /src/scripts/nocomment
parentf40c73f3b30547f7267c84bd22677dec65029dc4 (diff)
version 0.2
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
index 9c62cc8..cd5f0c2 100755
--- a/src/scripts/nocomment
+++ b/src/scripts/nocomment
@@ -1,3 +1,6 @@
#!/bin/sh
+# Remove all the commments in the given file
+# Comments are considered to start with "#"
+
sed -i "s/\s*#.*//g; /^$/ d" $1