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