![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
文章平均质量分 62
豆先生
这个作者很懒,什么都没留下…
展开
-
shell模式裁剪字符串
1.myvar="foobar"; ${myvar:3} #输出bar ${myvar:3:2} #输出ba ${myvar: -4} #输出obar 注:中间的空格是必须的 2.${variable#word} #从字符串开头使用非贪婪模式匹配 phone="555-456-1414" ${phone#*-} #输出456-1414 3.${variab原创 2015-05-19 11:17:43 · 1099 阅读 · 0 评论 -
开机自动执行脚本
vi 打开 /etc/rc.local 然后加上脚本x.sh的路径。 1. vi /etc/rc.local 2. /home/x.sh原创 2015-08-18 14:52:10 · 528 阅读 · 0 评论 -
远程ssh子shell解决方法
ssh root@x.x.x.x screen -m -d "rsync --daemon"原创 2015-08-18 15:47:24 · 318 阅读 · 0 评论