Chinaunix首页 | 论坛 | 博客
  • 博客访问: 680443
  • 博文数量: 291
  • 博客积分: 10025
  • 博客等级: 上将
  • 技术积分: 2400
  • 用 户 组: 普通用户
  • 注册时间: 2004-12-04 12:04
文章分类

全部博文(291)

文章存档

2008年(102)

2007年(112)

2006年(75)

2004年(2)

我的朋友

分类:

2008-07-31 12:11:58

http://www.ibm.com/developerworks/aix/library/au-badunixhabits.html?S_CMP=cn-a-aix&S_TACT=105AGX52

Ten good habits to adopt are:

  1.  Make directory trees in a single swipe.
   2. Change the path; do not move the archive.
   3. Combine your commands with control operators.
   4. Quote variables with caution.
   5. Use escape sequences to manage long input.
   6. Group your commands together in a list.
   7. Use xargs outside of find .
   8. Know when grep should do the counting -- and when it should step aside.
   9. Match certain fields in output, not just lines.
  10. Stop piping cats.


http://www.ibm.com/developerworks/aix/library/au-unixtips/?S_CMP=cn-a-aix&S_TACT=105AGX52
 The 10 additional good habits you should adopt are:

    * Use file name completion.
    * Use history expansion.
    * Reuse previous arguments.
    * Manage directory navigation with pushd and popd.
    * Find large files.
    * Create temporary files without an editor.
    * Use the curl command-line utility.
    * Make the most of regular expressions.
    * Determine the current user.
    * Process data with awk.


阅读(504) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~