7 lines
186 B
Bash
Executable File
7 lines
186 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script requires a file as argument (wildcards allowed)
|
|
# in which it will remove all comment lines that start with a hash '#'
|
|
|
|
sed -i '/^\s*\#[^!].*/d; /^\s*\#$/d' $1
|