![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
tadus_zeng
the world need balance
展开
-
linux定时任务crontab
安装yum install crontabsorapt-get install crontabs语法* * * * * ${shell command} # shell命令- - - - -| | | | || | | | +----- 星期中星期几 (0 - 6) (星期天 为0)| | | +---------- 月份 (1 - 12) | | .原创 2021-05-15 16:34:15 · 69 阅读 · 0 评论 -
shell 字符串处理:截取
${var#word} 删除前缀,最小匹配前缀${var##word} 删除前缀,最大匹配前缀${var%word} 删除后缀,最小匹配后缀${var%%word} 删除后缀,最大匹配后缀例子for i in `ls /public/src/*.so*`;do ln -sf $i /usr/lib/${i##*/} ;done...原创 2021-05-14 16:04:13 · 66 阅读 · 0 评论