Shell脚本¶
- 读《Shell脚本学习指南》,更新笔记在Tool_Settings 仓库
- 基本配置的内容在Tool_Settings 仓库
基本概念¶
- 管道
Xargs¶
https://www.google.com/search?q=xargs&oq=xargs&gs_l=psy-ab.3...1473864.1473864.0.1473967.1.1.0.0.0.0.0.0..0.0....0...1.2.64.psy-ab..1.0.0.xawph4lxqiU
https://gist.github.com/jessicard/3658495
http://blog.csdn.net/my2010sam/article/details/18663053
https://en.wikipedia.org/wiki/Xargs
Shell Practise¶
$ who
$ wc
word count
$ wc -l
only cont lines
$ who | wc -l
$ cat > nusers who | wc -l
ctrl + D ( end of file, on mac maybe ctrl + c)
$ chmod +x nusers $ ./nusers
change Authoriation and run it