summaryrefslogtreecommitdiff
path: root/src/scripts/nocomment
diff options
context:
space:
mode:
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