I have file like this
<IfModule mod_unixd.c>
# Run as a unique, less privileged user for security reasons.
# User/Group: The name (or #number) of the user/group to run httpd as.
# Default: User #-1, Group #-1
# https://httpd.apache.org/docs/current/mod/mod_unixd.html
# https://en.wikipedia.org/wiki/Principle_of_least_privilege
User www-data #
Group www-data
</IfModule>
I use command for removing comments but it doesn't remove comments, what's wrong?
sed -e '/^[\s]*#/d' test.conf'
Output must be
<IfModule mod_unixd.c>
User www-data #
Group www-data
</IfModule>