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