Results 11 to 11 of 11
Originally Posted by Jamikhan
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-27-2010 #11Just Joined!
- Join Date
- Aug 2010
- Posts
- 5
Hi Jami,
You can make a list of user in flat file and do some like this.
MohanCode:#!/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



Reply With Quote
