Re: deleting a user name from a file

2008-05-09 Thread Lokeey
On Fri, May 9, 2008 at 12:56 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > Lokeey wrote: > > > > I'm writing this script to remove users from a file, the sudoers file, to > be > > more specific. > > > > Here is what I have so far, not sure whe

deleting a user name from a file

2008-05-09 Thread Lokeey
I'm writing this script to remove users from a file, the sudoers file, to be more specific. Here is what I have so far, not sure where to go from here. *#!/usr/bin/perl -w # this script removes a user from sudoers file my $sites = $ARGV[0]; my $user = $ARGV[1]; for my $site ($#ARGV[1]){ open

Re: Trying to splice....

2008-04-10 Thread Lokeey
Yeah...I actually figured it out last night, and couldn't find my post to send out the correction. but thanks for the assistance. my final code looks like this.. #!/usr/bin/perl -w # extracting elements using splice @players = ("ryno", "fukudome", "grace", "banks", "santo", "soto",