diff options
author | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:18:30 +0400 |
---|---|---|
committer | Suleyman Farajli <suleyman@farajli.net> | 2024-07-20 20:18:30 +0400 |
commit | 73e31b79de25298a519671ef8b6c2ab68af9c87e (patch) | |
tree | fafbc2e405247cd1c9b1106d6346a5767071e14f /scripts/nocomment | |
parent | ac76d8699e3979353cd82136323e1e0afee4bba2 (diff) |
directory layout changed
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 |