首页 软件开发 代码片段 shell ( Page 11 )

shell 564

#Shell
Shell 简单的获取命令行参数

#! /bin/bash while getopts a:bc opt do case $opt in a) echo "aaa" echo $OPTARG ;; b) echo …

2015-09-25 737

#Shell
batch 修改 静态IP/动态IP

@rem echo OFF set lan_name="Wireless Network Connection" rem define all the network addres…

2015-09-24 142

#Shell
双击获取公网IP到剪贴板

@echo off echo On Error Resume next >checkip.vbs echo Url="http://anool.net/ip.php" >…

2015-09-23 855

#Shell
Powershell加密解密字节

[Reflection.Assembly]::LoadWithPartialName("System.Security") $String=$buff #ARRAY OF BYTE…

2015-09-22 687

#Shell
批量测试ping通不通

#!/bin/sh A=`cat ip.txt` echo "先将IP 分行写在ip.txt文件中,然后执行sh ping2.sh" for B in $A do str=`pin…

2015-09-20 681

#Shell
Linux动态监控tomcat日志,将新的数据输出到指定文件

tail -f catalina.out >> 'test.log' 清空文件内容:>'test.log'

2015-09-19 622

#Shell
cal扩展练习2

#!/bin/bash case $1 in "Jan"|"January" ) value1=1;; "Feb"|"February" ) value1=2;; "Mar"|"M…

2015-09-18 799

#Shell
Git 学习记录

##更新被拒绝,因为您当前分支的最新提交落后于其对应的远程分支 git push -f origin master ##更新时,不想把所有的文件都提交 git rm --cache…

2015-09-15 545

#Shell
程序运行结束后自动发邮件

#!/bin/sh curDate=`date` # Run your program here endDate=`date` echo "Running complete! St…

2015-09-13 428

#Shell
vtune的自动化安装

#!/bin/bash #!/usr/bin/expect -f #!/usr/bin/env bash yum install -y expect wget cd /root w…

2015-09-13 276

#Shell
nagios监控mysql_slave 状态参考

#! /bin/bash # # # #监控mysql主从同步状态 # # # STATE_OK=0 #正常 STATE_WARNING=1 #警告 STATE_CRITICAL=…

2015-09-13 537

#Shell
centos安装centos数据库

第1步、yum安装mysql [root@stonex ~]# yum -y install mysql-server 安装结果: Installed: mysql-server.…

2015-09-10 122
1 9 10 11 12 13 47