- or download this
$HAN = "handle";
$FILE = "passwd.txt";
...
print "UID is: @IDINFO[2] \n";
print "GID is: @IDINFO[3] \n";
}
- or download this
Passwd File, i am using:
...
dda05:x:137005:137:Domino
dda06:x:137006:137:Domino
ddm01:x:88085:137:Notes
- or download this
output: (its only taking first line and printing multiple times)
...
GID is: 507
UID is: 222
GID is: 507