如何在shell脚本中创建一个名为foo.conf的文件,并使其包含:
NameVirtualHost 127.0.0.1 # Default <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "C:/wamp/www" </VirtualHost>
使用“这里文件”:
cat > foo.conf << EOF NameVirtualHost 127.0.0.1 # Default <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "C:/wamp/www" </VirtualHost> EOF