walo
04-19-2007, 06:19 PM
i need to make a line script than can remove a specific line from the httpd.conf file
I get this, but it doesn't work
perl -ni -e 'unless (m//usr/local/directadmin/data/users/myuser/httpd.conf$/) { print }' /etc/httpd/conf/httpd.conf 2>&1Which i need to remove is a line like this one:
Include /usr/local/directadmin/data/users/myuser/httpd.conf
I get this, but it doesn't work
perl -ni -e 'unless (m//usr/local/directadmin/data/users/myuser/httpd.conf$/) { print }' /etc/httpd/conf/httpd.conf 2>&1Which i need to remove is a line like this one:
Include /usr/local/directadmin/data/users/myuser/httpd.conf