how to remove comment lines (as # bal bla ) and empty lines (lines without charecters) from file with one sed command?
THX lidia
you can use awk
awk 'NF{gsub(/^[ \t]*#/,"");print}' file