my queries

hi guys

Well, i need to have a report generation script or any script which will show me all the content/information of a file when i run that script.
Please help me on this isssue at the earliest.As i am little bit aware of scripting.Thanks in advance!

regards
ash

Your requirements are so vague as to be vacuous. But try this.

echo Report Title
echo ============
cat <<HERE

Body of report goes here.
You need to fill this in with the actual report you want.
Maybe you could "cat file" instead if you want the contents of that file here.
HERE
#!/usr/bin/perl

    my $file = $_[0];
  
    open (FILEPTR, $file) or die "an error occured while reading file !";
    while ( <FILEPTR> ) {
     print "$_";
     }

close ( FILEPTR );

hi,(era/wolwy)
i didnt meant to cat the file and show its contents.
But i expect a syncornized method to query that file to see whether that policy has been implemented or not

for eg: /etc/passwd
The script should show me the
Default minimum password age
Default maximum password age
Default minimum password length
Default account lockout Threshold
Default Interactive logon

I guess the point is more clear now
Appriciate if it is a bash shell scripting.As am new to pearl
Thnks in advance.Waiting for ur reply
regards
ash

The passwd file does not contain this information. But read up on password handling; man passwd and all that, with special attention to the SEE ALSO section.

Once you find the right manual page (this will depend on what system you're on -- for Ubuntu this would be adduser.conf(5) I guess) you will probably not even need any script.