Quote:
Originally Posted by
p_satyambabu
can u plz explain what will happen if we put 1 infront of $i?
Sure. Until now, the for loop searched for username everywhere in the file, including the group column.
But after your latest modification, it will only search for username in the username column (column next to the column with the ones).
-rwxr-xr-x
1 oprvdw svemietl 4771 Mar 9 2009 vrc002093j.ksh
-rwxr-xr-x
1 oprvdw svemietl 4773 Mar 9 2009 vrc002092j.ksh
-rwxr-xr-x
1 oprvrc controlm 5428 Apr 3 2009 vrc045016j.ksh
-rwxr-xr-x
1 oprvrc controlm 5354 Apr 3 2009 vrc055141j.ksh
-rwxr-xr-x
1 svemietl controlm 2745 Feb 16 02:20 bdw0231185.sh
-rwxr-xr-x
1 svemietl controlm 2672 Feb 16 02:20 bdw0231145.sh
Hope I was comprehensible.