- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 shell调用shell,列出服务器进程和文件的头15行
#做了个软连接shell#ln -s /home/lengxuezhixuan/workshell/20110803/lic.sh shellshell#bash shell#! /bin/bash#written by lengxuezhixuanwhile
2011-08-05 09:31:43
182
原创 脚本自动判断关键字,符合的自动scp出去
#! /bin/bash#write by lengxuezhixuanKEYPATH=/bak/ftp/keyrbf.datSOFFILE=$(find /share/computer/test/rbf -name "*.sof")FILE=$(find /share/comp
2011-07-28 09:33:10
385
原创 批量chown,chmod从文件中列取出来的目录
#! /bin/bash#chmod;chown the directory from filefiledir=/rootfilename=$filedir/list.txtsed -i 's#\\#/#g' $filenamesed -i 's#^\^/#/s#g' $file
2011-07-28 09:32:21
376
原创 将所有用户的附属组全部列出来
#! /bin/bashawk -F ":" '{print $1}' /root/passwd > /root/passwd.onewhile read linedo id $line >> /root/passwd.ok 2>&1done 将内容直接复制到exc
2011-07-28 09:30:02
281
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人