Re: KSH and Perl output

2006-12-22 Thread oryann9
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

KSH and Perl output

2006-12-21 Thread oryann9
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,"