I'm having a problem getting this to work. I have a file called bull_dog.list. In it is the following
test1
test2 keep
test3
test4
I want the script to cat the list and if it finds the word keep not to remove the directory. Other wise remove it all.
cat bull_dog.list | while read H
do
echo " Removing $H Id and home directory"
if `grep "$H keep"`
then
print "keep home directory"
else
print "remove home directory"
fi
done
Ideas??
test1
test2 keep
test3
test4
I want the script to cat the list and if it finds the word keep not to remove the directory. Other wise remove it all.
cat bull_dog.list | while read H
do
echo " Removing $H Id and home directory"
if `grep "$H keep"`
then
print "keep home directory"
else
print "remove home directory"
fi
done
Ideas??