当前位置: 技术问答>linux和unix
这个文件是做什么的?
来源: 互联网 发布时间:2015-08-17
本文导语: LH=$HOSTNAME echo "cat ./Template_html/Kll/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/btm.html" >> a.tmp echo "cat ./Template_html/Kll/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/side.html" >> a.tmp echo "cat...
LH=$HOSTNAME
echo "cat ./Template_html/Kll/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/btm.html" >> a.tmp
echo "cat ./Template_html/Kll/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/side.html" >> a.tmp
echo "cat ./Template_html/drT1/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT1/btm.html" >> a.tmp
echo "cat ./Template_html/drT1/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT1/side.html" >> a.tmp
echo "cat ./Template_html/drT2/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT2/btm.html" >> a.tmp
echo "cat ./Template_html/drT2/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT2/side.html" >> a.tmp
echo "cat ./Template_html/drT3/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT3/btm.html" >> a.tmp
echo "cat ./Template_html/drT3/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT3/side.html" >> a.tmp
echo "cat ./Template_html/Br/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Br/btm.html" >> a.tmp
chmod a+x a.tmp
./a.tmp
rm a.tmp
我想问的是,这个Maker文件是干什么的?
echo "cat ./Template_html/Kll/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/btm.html" >> a.tmp
echo "cat ./Template_html/Kll/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Kll/side.html" >> a.tmp
echo "cat ./Template_html/drT1/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT1/btm.html" >> a.tmp
echo "cat ./Template_html/drT1/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT1/side.html" >> a.tmp
echo "cat ./Template_html/drT2/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT2/btm.html" >> a.tmp
echo "cat ./Template_html/drT2/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT2/side.html" >> a.tmp
echo "cat ./Template_html/drT3/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT3/btm.html" >> a.tmp
echo "cat ./Template_html/drT3/side.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/drT3/side.html" >> a.tmp
echo "cat ./Template_html/Br/btm.html | sed -e 's/localhost/"$LH"/g' > ../Project_html/Clients/Br/btm.html" >> a.tmp
chmod a+x a.tmp
./a.tmp
rm a.tmp
我想问的是,这个Maker文件是干什么的?
|
一个脚本程序,目的是把./Template_html/drT3/中几个文件的localhost换成本地主机名另存到../Project_html/Clients/Br/而已。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。