bash scripting 
    ccb at valinux.com 
    ccb at valinux.com
       
    Fri Sep 29 17:23:01 EDT 2000
    
    
  
test is a built-in in bash.  After a while, shell scripters develop
an entire arsenal of ways to get things done that don't require extra
processes, such as X=`ls`  vs.  X=*, or:
cat foo | while read X
do
  proc $X
done
vs
while read X
do
  proc $X
done < foo
and so on.
In general I agree - if it's bigger than "trivial", use perl.  I tend
to err on the size of larger scripts because I was here before perl ;-).
ccb
--
Charles C. Bennett, Jr.			VA Linux Systems
Systems Engineer,			25 Burlington Mall Rd., Suite 300
US Northeast Region			Burlington, MA 01803-4145
+1 617 543-6513				+1 888-LINUX-4U
ccb at valinux.com				www.valinux.com
 vi/(emacs)  NT/(Linux)  qmail/(sendmail)  (perl)/python  (pepsi)/coke
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
    
    
More information about the Discuss
mailing list