-
文本内容列之间用逗号分隔,列之间空格数不固定cat1.txt3270804 1311038336 14400 131105273613110457182370881 1311038314 &nbsunlizhourong 时间:07-19 + 阅读全文
-
expect 取目标主机的变量/usr/bin/expect<<EOFsettimeout-1spawn/usr/bin/[email protected] expect{ "(yes/no)?"{send--"yes\r";267020090 时间:07-19 + 阅读全文
-
一个简单集合了几种压缩格式的脚本其实我是想根据mplayer的到的视屏长度计算毫秒数的,mplayer给出的是xx.xxx形式,比如12.03我的计算脚本v=12.03a=`echo$v|cut-d.-f1`b=`echo$v|cut-d.-f2`echo$(($((a*1000))+$b))现在有些情况下算不来,其实归纳下就是比如echo$((08))会报错,更小的数字不会bash:novesky 时间:07-19 + 阅读全文
-
想匹配多个字符中的任何一个怎么写?期望的匹配sh-3.1$params=-tcsh-3.1$grep["-tc"\|"-single"\|"-feature"\|"-all"\|"-default"\|"FILEPATH="]<<<$params-tc不过sh-3.1$params=impossiblesh-3.1$grep["-tc"\|"-single"\|"-feature"\icetown 时间:07-19 + 阅读全文