In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Daniel Falkenberg) wrote:
> Hey all,
>
> Currently I am working on the Linux /etc/passwd file. Now I want to be
> able to split the /etc/passwd file for example...
>
> tunnel:x:503:503::/home/tunnel:/bin/bash
> test:x:504:50:Test Account:/hom
List,
Just been playing around with the code a little more...
sub view_users{
open PASSWD, "$file" or die "$file: $!\n";
while ($lines = ) {
@lines = split (/:/, $lines);
if ($lines[3] == 45 ) {
$users{$lines[0]} = $lines[4];
}
}
return %users;
close PASSWD;
}
vie
Hey all,
Currently I am working on the Linux /etc/passwd file. Now I want to be
able to split the /etc/passwd file for example...
tunnel:x:503:503::/home/tunnel:/bin/bash
test:x:504:50:Test Account:/home/test:/bin/false
test2:x:507:502:Test Account:/home/test2:/bin/false
daniel:x:508:45:Thats M