![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
bitterliquor
这个作者很懒,什么都没留下…
展开
-
sed命令
sed awk grep 小技巧整理,原创 2023-02-06 17:04:14 · 116 阅读 · 0 评论 -
shell 编程手册
============================== SHELL编程 ============================== 一、Shell语法 1.1、变量声明 1.2、数组声明和使用 1.3、特殊的变量 1.4、运算和运算符 1.4.1、整数运算符 1.5、流程语句 1.5.1、if 语句 1.5.2转载 2013-11-29 09:22:11 · 1228 阅读 · 0 评论 -
简单的备份日志和自动重启tomcat的shell脚本
#!/bin/sh #backup tomcat1 log lastdate=`date -d "-7 day" +%Y-%m-%d` logfile=/tomcatlog/localhost_access_log.$lastdate.txt if [ -f "$logfile" ]; then echo 'exist file' mv $logfile/tomcatl转载 2014-11-14 08:07:41 · 763 阅读 · 0 评论 -
shell 知识点备忘
与文件存在与否的判断 -e 是否存在 -f 是否为普通文件 -d 是否为目录 -s 是否为空的文件 -p转载 2017-02-14 15:58:49 · 243 阅读 · 0 评论