
Unix Shell
小申
GOGOGO~
展开
-
使用shell获取ftp文件
shell即简单又快速~sysdate=`date +"%Y%m%d%H%M%S"`ftpip=192.168.1.2username=aaapassword=aaaftp -ni $ftpip<<!user $username $password原创 2011-08-30 09:41:57 · 3901 阅读 · 0 评论 -
使用shell维护系统进程
n多的僵死进程~,fork~fork~,没找到原因前只能用批量杀进程的sh维护了~#!/usr/bin/shif [ "$1" = "" ]then echo usage:kill cmdname exit 1fips -ef原创 2011-08-30 10:04:19 · 520 阅读 · 0 评论 -
好久没来了。。今天偶然写了两个shell,贴上来吧~还有要学习的内容~许多~
grep和find,找目录下包含某些内容的文件路径:grep -ril 190 *10/_gd_2970.xml10/_gd_9266.xml-bash-3.2$ find ./* -type f |xargs -i grep -nH "190" {}| awk -F: '{print $1}'./10/_gd_2970.xml./10/_gd_9266.x原创 2013-08-02 16:27:20 · 704 阅读 · 0 评论