Sounds dangerous!  ;)

perldoc perlrun

Look for the '-i' entry.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: removing a line!!!


hi there,
i am just a 2 days perl beginner and trying to do something like this:
searching a pattern in a file line by line (/etc/passwd infact),and if it
matches,deleting that line...
i just made the matching line properly,but don't know how to delete that
matching properly...
in fact, i am trying to delete the entry of a user in /etc/passwd to remove
it from the  system...this is something like "pass username",which searches
for username and when matches deletes...(hey i know there are commands to
do this by unix, i am just trying to learn)..
any help??
regards...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to