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

shell 564

#Shell
服务器 内存、磁盘、cpu、swap 监控

#!/bin/bash MAILLIST="foyon0806@gmail.com" #emailist MEM_CORDON=100 #内存使用大于这个值报警 SWAP_CORD…

2015-10-30 152

#Shell
VS备份编译的版本

@echo off title 后期事件生成命令行 rem 参数判断 if "%1" equ "" ( goto err ) if "%2" equ "" ( goto err )…

2015-10-29 170

#Shell
shell查询手机号码归属地

#!/bin/bash regex="1([358][0-9]|45|47)[0-9]{4,8}" str=`echo $1|egrep ^"$regex"$` #判断输入是否是正…

2015-10-27 275

#Shell
PowerShell分割按行数分割文本文件

############################################# # Split a log/text file into smaller chunks …

2015-10-27 177

#Shell
懒得写makefile

汇编编译调用glibc #!/bin/bash echo "开始编译非系统调用$1..." ld -dynamic-linker /lib/ld-linux.so.2 -o $1 …

2015-10-26 394

#Shell
Linux进程拉起和重启脚本

process_name=jboss bin_path=/ICA20/jboss-4.3.1.GA-9000/bin

2015-10-23 469

#Shell
远程下载,构建,部署项目,可以立即回滚上一版本

#!bin/bash svn up . mvn clean package -Dmaven.test.skip=true -P product

2015-10-23 504

#Shell
UTF-8转GBK

#!/bin/sh # to Oudge the input data echo "you're going to Convert the file's encoding..." …

2015-10-22 440

#Shell
监测磁盘空间

#!/bin/bash # # find big disk space users in various directories CHECK_DIRECTORIES="." #de…

2015-10-21 715

#Shell
往infobright数据库load数据

#!/bin/bash #Author: Castle Liu #Date: 2014/05/22 #Desc: load data to infobright #Usage: l…

2015-10-21 380

#Shell
批量更新SVN管理的目录

@echo off echo %date% %time% Ready to update SVN repository. echo ========== %date% %time%…

2015-10-21 831

#Shell
当前目录下所有文件转码

#!/bin/sh for i in `ls` do if [ -d $i ]; then echo "$i is direction, so continue" continue…

2015-10-20 248
1 5 6 7 8 9 47