Boga Srinivas <[EMAIL PROTECTED]> wrote:oryann9 wrote:
> I am trying to get the equivalent in KSH to work in Perl and I cannot seem to
> get the same output. I need from /etc/passwd name, uid, gid and gecos for
> each passwd files.
>
> IN KSH:
>
> for i in `ls /var/tmp/passwd.*`
> do
> pr
I am trying to get the equivalent in KSH to work in Perl and I cannot seem to
get the same output. I need from /etc/passwd name, uid, gid and gecos for each
passwd files.
IN KSH:
for i in `ls /var/tmp/passwd.*`
do
print $i;
print "\n";
awk 'FS=":" {print $1,"\t",$3,"\t",$4,"