Simon wrote:
Hi all, Why is the following script ripping out every directory rather than just those in 'studentfile'
#!/bin/bash while read name; do cd $name rm -fvr * cd .. rmdir $name done < studentlist
while read name; do rm -fvr $name done < studentlist
--
Vino Fernando Crescini Intelligent Systems Laboratory
School of Computing & IT
phone: +61 2 4736 0140 University of Western Sydney
email: [EMAIL PROTECTED] Locked Bag 1797
web: www.cit.uws.edu.au/~jcrescin Penrith South DC NSW 1797"What's a battle?"
--Ralph Wiggum
Whacking Day (Episode 9F18)Scanned by SCIT E-Mail Gateway http://www.cit.uws.edu.au
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
