#!/usr/bin/perl
#########################################################################
# PURPOSE: Read file /etc/group and print users that belong to
# groups to a difrent txt files
#
# By Ian Zink
#########################################################################
open FILE, "<", "/etc/group";
while (<FILE>) {
print $_;
}
close FILE;
This program opens a file and then prints all the lines in the file to the screan.
I want to take the output and instead of sending it to the screan i want to send it to a difrent file.
How do i do this?
Thanks

New Topic/Question
Reply



MultiQuote





|