grep $USER xx >> filenorman.thai
i used the above command to gain a searched list for a user and put it into a file called filenorman.thai, the following is a bit of its contents...
USER=norman.thai
MAIL=/var/spool/mail/norman.thai
PWD=/home/norman.thai
HOME=/home/norman.thai
My question is, how do i add the corresponding line number as well as a bracket to make the text look like this:-
1)USER=norman.thai
2)MAIL=/var/spool/mail/norman.thai
3)PWD=/home/norman.thai
4)HOME=/home/norman.thai