Linux Today: Linux News On Internet Time.





More on LinuxToday


10 Tips for Writing Efficient Bash Scripts

Feb 02, 2009, 07:04 (2 Talkback[s])

[ Thanks to victorg for this link. ]

"1. Avoid Full Paths to Bash Builtins

"Bash has many builtins that can be used instead of calling external commands. You should leverage the builtin commands whenever possible since it avoids calling a subcommand from the system.

"Since Bash has builtins for some commands found in /bin and /usr/bin (such as echo), avoid using the full path for these commands and the builtin will be used."

Complete Story

Related Stories: