随笔分类 -  shell

摘要:linux命令中文在线帮助文档: http://linux.51yip.com/ linux系统在线帮助文档: http://c.biancheng.net/linux_tutorial/ 阅读全文
posted @ 2020-04-13 18:47 RedGuardian 阅读(2385) 评论(0) 推荐(1)
摘要:https://github.com/oldratlee/useful-scripts 阅读全文
posted @ 2019-05-31 15:54 RedGuardian 阅读(546) 评论(0) 推荐(0)
摘要:shell虽然比batch顺眼点儿,但还是老话,入门容易,精通难。 1、场景一是这样的,现有字符串的内容 name: tiger; age:18; location:china; 需求:提取每个属性的值,如age的值为18。 定义了一个函数如下: 做法就是提取age:和;之间的文本,这里结合grep 阅读全文
posted @ 2018-11-29 20:29 RedGuardian 阅读(415) 评论(0) 推荐(0)