将下面的文件放到一个bat文件当中,以管理员身份运行。@echo off &setlocal enabledelayedexpansionRem '/*========获取本机的IP地址(局域网)=========*/echo "please wait"for /f "tokens=2 delims...
分类:
其他好文 时间:
2014-07-22 22:58:15
阅读次数:
534
echo 200 silence >> /etc/iproute2/rt_tablesip rule add from 10.192.0.230 table silenceip rule add from 10.192.0.231 table silenceip rule add from 10.....
分类:
Web程序 时间:
2014-07-19 21:16:00
阅读次数:
305
HostnameSet the hostname to your liking (e.g. arch):# echo myhostname > /etc/hostnameAdd the same hostname to /etc/hosts:# nano /etc/hosts## /etc/host...
分类:
其他好文 时间:
2014-07-19 21:09:18
阅读次数:
194
一、大小写转换 1、strtolower()--转换为小写。 echo strtolower("Hello WORLD!"); //hello world! 2、strtoupper()--转换为大写。 echo strtoupper("Hello WORLD!"); //HELLO W...
分类:
Web程序 时间:
2014-07-19 20:13:39
阅读次数:
263
#!/bin/bash ver=`cat gate.rc | grep FILEVERSION`ver=`echo $ver | awk '{print $2;}'`ver=`echo $ver |sed 's/\([0-9]*\),\([0-9]*\),\([0-9]*\),\([0-9]*\)/...
分类:
系统相关 时间:
2014-07-17 00:54:24
阅读次数:
363
#!/bin/bashecho "i am main"for i in $(seq 1 5)do { sleep 10; echo "i am $i";}&donewaithttp://www.cnblogs.com/dorothychai/archive/2012/10/19/27303...
分类:
系统相关 时间:
2014-07-16 17:58:33
阅读次数:
326
批处理使用方法:将代码复制到记事本文件里,然后修改文件后缀为*.bat格式。 SQL server2008 服务开启服务批处理:@echo offsc start MSSQLFDLaunchersc start MSSQLSERVERsc start MSSQL$SQL...
分类:
其他好文 时间:
2014-07-16 17:04:13
阅读次数:
175
xargs是给命令传递参数的一个过滤器,也是组合多个命令的一个工具。它把一个数据流分割为一些足够小的块,以方便过滤器和命令进行处理。通常情况下,xargs从管道或者stdin中读取数据,但是它也能够从文件的输出中读取数据。xargs的默认命令是echo,这意味着通过管道传递给xargs的输入将会包含换行和空白,不过通过xargs的处理,换行和空白将被空格取代。
1.选项解释
-0 当sdtin...
分类:
其他好文 时间:
2014-07-16 16:18:32
阅读次数:
262
=$i;$z--){ echo ""; }for($j=1;$j";}
分类:
其他好文 时间:
2014-07-16 15:22:45
阅读次数:
177
*
***
*****
*******
*********
***********
上图php代码如下
<?php
for($i=1;$i=$i;$z--){
echo " ";
}
for($j=1;$j<=2*$i-1;$j++){
echo "*";
}
echo "";
}...
分类:
Web程序 时间:
2014-07-16 10:41:55
阅读次数:
245