Quote Originally Posted by Jamikhan View Post
i will check all these options
thanks in advance..
but i need to be sure that it will not harm my user IDs..it will just remove email forwarding from them....?

Jami
Hi Jami,

You can make a list of user in flat file and do some like this.

Code:
#!/bin/sh

PATHHOME="/home" # Location Where user home folder is located
BACKLOC="/backup" # Location to take backup

for USER in  `cat userslist | sed 's/ /\\ /g'`
do
	if [ -f $PATHHOME/$USER/.forward ]
		cp $PATHHOME/$USER/.forward $BACKLOC/$USER.forward
		rm -f $PATHHOME/$USER/.forward
	fi
done
Mohan