![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
bash
李必胜
这个作者很懒,什么都没留下…
展开
-
[2018-06-26] bash 2 : xargs, reload .bashrc
xargsxargs 读取stdin, 作为参数调用utility 。 默认行为是空格分割,对多行进行合并。xargs的一个选项-I,使用-I指定一个替换字符串{},这个字符串在xargs扩展时会被替换掉,当-I与xargs结合使用,每一个参数命令都会被执行一次find . -type f -name “*.log” -print0 | xargs -0 rm -f NULL 作...原创 2018-06-26 21:59:17 · 233 阅读 · 0 评论 -
[2018-06-27] bash 颜色及y or n
change the fore color of echo.———- constant part!vvvv vvvv– the code from aboveRED=’\033[0;31m’ NC=’\033[0m’ # No Color echo -e “I REDloveREDlove{RED}love{NC} Stack Overflow\n”选择Y or N...原创 2018-06-27 20:54:36 · 143 阅读 · 0 评论