advanced shell programming

  1. 使用$(command),将command的返回值作为另一个命令的组成部分
    grep $(head -n1 a.txt) a.txt
  2. daily & sophisticated shell built-in commands
  3. sed [stream editor]
  4. $’string’

     
  5. set -x
  6. I/O重定向
  7. 在双引号内使用单引号,不需要加反斜线;使用双引号需要加反斜线;
  8. eval
  9. xargs
  10. awk [Aho Weinberger Kernighan]
  11. truncate last line
  12. 12

Leave a Reply

Your email address will not be published. Required fields are marked *