grep -A2 "login:$USER" user.tx | tail +2 > $HOME/test.txt
To:netman
i have try grep -A2 "login:$USER" user.tx | tail +2 >$HOME/test.txt
it wont work.. but if
grep -A2 "login:$USER" user.tx | >/$home/test.txt
then it work..
but i have another question.
let say i wan using root to running while loop. auto
writing in each user folder . how can i do ?
sorry.i dont know much shell script one.
it means the $user <--i wan set variable how can i do ??
tks again