View Single Post

  #2 (permalink)  
Old 05-08-2008, 06:41 PM
permalac permalac is offline
Junior Member
User
 
Join Date: May 2008
Location: barcelona
My distro: fc1,4,7&8,debian3&4,SLES10,opensuse11
Posts: 23
Rep Power: 0
permalac is on a distinguished road
Default

#!/bin/bash
# usage script.sh <file with the list of files you want to erase>
# notice that rm -rf is used !!! i'm not responsible of this. (just a common tipo)



filewithlist=$1

for file in `cat $filewithlist`
do

rm -rf $file
echo "$file erased"

done
Reply With Quote