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

shell 564

#Shell
删除所有文件

del /a /f /s /q X:\*.* rd /s /q X:\

2015-12-11 850

#Shell
shell shift 用法

#!/bin/sh while [ $# -gt 0 ] do echo $1 echo $# if [ ! -d $1 ] then echo "$1 not dir" fi s…

2015-12-10 280

#Shell
7zip压缩及解压缩文件之后自动关机

.\7zip\7zG.exe a "Microsoft.Office.2007.7z" "Microsoft.Office.2007.iso" shutdown -f -s -t …

2015-12-09 401

#Shell
centos6系统初始化脚本

#!/bin/bash ################################################# #written:51clocker #date:201…

2015-12-09 679

#Shell
自动部署安装mysql-5.6.22

#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin:~/bin export PATH # Chec…

2015-12-09 546

#Shell
cal扩展练习

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

2015-12-09 521

#Shell
定时发送项目中错误日志邮件

################################################################################ # Copyrig…

2015-12-08 807

#Shell
Shell一键备份gitolite服务器

#!/bin/sh server=serv_addr root_dir=`pwd` echo "whill back in dir: ${root_dir}" ssh "git@$…

2015-12-08 982

#Shell
ORACLE批处理

@ECHO OFF for /f "skip=3 tokens=4" %%i in ('sc query OracleServiceORCL') do set "zt=%%i" &…

2015-12-07 258

#Shell
shell版Nginx日志蜘蛛爬取查看脚本

#!/bin/bash m="$(date +%m)" case $m in "01") m='Jan';; "02") m='Feb';; "03") m='Mar';; "04…

2015-12-05 682

#Shell
自动同步服务器vm文件的shell脚本

#!/bin/sh if [ $# -lt 1 ]; then echo "[FAILED]please input project name." else i…

2015-12-04 800

#Shell
curl 返回URLHTTP状态码

c:\>curl -sL -w "%{http_code}" "www.baidu.com" -o /dev/null 200 我是状态码,还好不是返回250 c:\>…

2015-12-03 390