Thread
:
Script to delete a set of files in Remote machine
View Single Post
#
2
(
permalink
)
05-08-2008, 06:41 PM
permalac
Junior Member
User
Join Date: May 2008
Location: barcelona
My distro: fc1,4,7&8,debian3&4,SLES10,opensuse11
Posts: 23
Rep Power:
0
#!/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
permalac
View Public Profile
Send a private message to permalac
Find all posts by permalac