Shell脚本

基本概念

  • 管道

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 -lonly 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