diff options
Diffstat (limited to 'scripts/nocomment')
-rwxr-xr-x | scripts/nocomment | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/nocomment b/scripts/nocomment new file mode 100755 index 0000000..cd5f0c2 --- /dev/null +++ b/scripts/nocomment @@ -0,0 +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 |