diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-02-18 17:36:51 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-02-18 17:36:51 +0400 |
commit | d1e8f727620479a98ad568e8e3dc98e84bef45b2 (patch) | |
tree | 56a8dedb74e9e8a6f8692027e3eadd201eb37c5f /src/scripts/nocomment | |
parent | f40c73f3b30547f7267c84bd22677dec65029dc4 (diff) |
version 0.2
Diffstat (limited to 'src/scripts/nocomment')
-rwxr-xr-x | src/scripts/nocomment | 3 |
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 |