- Make directory trees in a single swipe.
- Change the path; do not move the archive.
- Combine your commands with control operators.
- Quote variables with caution.
- Use escape sequences to manage long input.
- Group your commands together in a list.
- Use
xargs
outside offind
. - Know when
grep
should do the counting -- and when it should step aside. - Match certain fields in output, not just lines.
- Stop piping
cat
s.
20061218
Adopting 10 good habits of Unix Scripting
I saw this on a quick fleeting moment on slash.dot .. It covers many things that I have done in the past..
Subscribe to:
Posts (Atom)