Open Tech archive
Sharing what I know!!!
About Me
Prakash
Working as Technical Lead in CollabNET software private limited.
View my complete profile
Friday, 13 February 2009
Script to delete folder in a loop
#!/bin/sh
i=0
while [ $i -le 40 ]
do
folder="psr-pub-$i"
#chown apache:apache $folder -R
rm -rf $folder
i=`expr $i + 1`
done
1 comment:
digitalpbk
said...
rm -rf foldername-*
26 November 2009 at 6:37 pm
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
1 comment:
rm -rf foldername-*
Post a Comment