摘要:一直以为脚本的第一行是必须要以类似“#!/bin/sh”这样一个说明来开始的,昨天,发现错了。脚本可以没有这个解释器的说明,如果没有这个解释器的话,那么执行脚本的时候就会使用当前的shell来解释,如果是在系统启动的时候运行这个脚本估计就有问题了,因为这个时候似乎还没有任何shell被载入。(可惜没什么时间去验证)......
摘要:代码:for ((i=1;i<=10;i++)) do echo "num is $i" donenum=1 代码:num=1 while [ "$num" -le 10 ]; do echo "num is $num" num=$(($num + 1)) done十三问,我是从去年新年开始看的中途看看停停,今天晚上总算看完了,看完......
MRTG交换机各端口当前流量排序scripts上一页 ... |cut -f4 -f5 -d" " |awk nr==3nr==6 【程序编程相关:
Oblique Frustum Clip】 【推荐阅读:
比较不错的手机FC模拟器!
】 |cut -f3 -d">" >>/tmp/tmp2 【扩展信息:
Programming in Lua翻译】 done more /tmp/tmp2 | awk nr%3==1{printf("<tr><td> %s </td>",)} nr%3==2{printf("<td> %s </td>",)} nr%3==0{printf("<td> %s </td></tr>n",)} |sed -e s/<title>//g -e s:</title>::g >/tmp/tmp3
echo -n <html>
<head> <meta content="text/html; charset=gb2312" http-equiv=content-type> <meta http-equiv=refresh content=300> </head> <body> <p align=center><b>sorted by current input. (unit kb) </b></p> <table cellspacing=0 cellpadding=1 width=600 align=center border=1> <tr height=30 bgcolor=#ff9900> <td > <p>switchname&port</p> </td> <td > <p>inputsize</p> </td> <td > <p>outputsize</p> </td> </tr> >/usr/local/www/data/mrtg/1.html
echo -n <html>
<head> ...
下一页 摘要:#!/bin/bash my_fun() { echo inside function is echo inside function is echo inside function is } echo outside function is echo outside function is echo outside function is my_fun fp1 "fp2 fp3&quo......