[SPAM] - [ale] BASH shell scripting help needed - Found word(s) remove list in the Text body

Yu, Jerry Jerry.Yu at Voicecom.com
Fri Mar 18 10:56:18 EST 2005


#! /bin/bash
for dir in `cat /root/bigDirList`
do
    echo "removing directory named ($dir) ..."
   rm -rf $dir
done

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org]
Sent: Friday, March 18, 2005 10:46 AM
To: Atlanta Linux Enthusiasts
Subject: [SPAM] - [ale] BASH shell scripting help needed - Found word(s) remove list in the Text body


Hello all,
 
I am in need of some help with writing a BASH shell script to do remove a particular set of directories within a directory.  In hopes of not having to type out each one I would like to load the list of directories to remove from a text file.  Unfortunately, my scripting skills are sub-par at best so I really don't even know where to start with this.
 
Thanks in advance for any help offered.
 
-Ryan


This email and any attached files herein contain information that is intended only for the use of the individual or entity to whom it is addressed and may contain information that is legally privileged, confidential or otherwise exempt from disclosure under applicable laws. If the reader of this message is not the recipient, any disclosure, dissemination, distribution, copying or other use or retention of this communication or its substance is prohibited.


-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list