Results 11 to 11 of 11
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Aug 2010
You can make a list of user in flat file and do some like this.
#!/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