7 lines
186 B
Bash
7 lines
186 B
Bash
|
#!/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
|