grep -v "[#]" smb.conf |grep -v [\;]|grep -v ^$
Later I'll try the same other ways.
Below are sed script what to make the same:
#cat blank
/^$/d
/^#/d
/^\;/d
And command line:
#sed -f blank smb.conf
Same as befor but in one line:
#sed -e "/^$/d; /^;/d; /^#/d" smb.conf
1 comment:
This is highly valuable.
Thank You.
Post a comment