[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



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

for in `cat directorlisting`; do rmdir $i; done

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00310" href="msg00310.html">[ale] BASH shell scripting help needed</a></strong>
<ul><li><em>From:</em> FishR at bellsouth.net (Ryan Fish)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00307" href="msg00307.html">[ale] BASH shell scripting help needed</a></strong>
<ul><li><em>From:</em> FishR at bellsouth.net (Ryan Fish)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00308.html">[SPAM] - [ale] BASH shell scripting help needed - Found word(s)	remove list in the Text body</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00310.html">[ale] BASH shell scripting help needed</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00307.html">[ale] BASH shell scripting help needed</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00310.html">[ale] BASH shell scripting help needed</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00309"><strong>Date</strong></a></li>
<li><a href="threads.html#00309"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>