From: barjunk Date: 2007-02-16T06:55:07+09:00 Subject: Processing a text file I have a radius users text file that has entries like: # username - Thu Feb 15 08:59:03 AKST 2007 davidh Calling-Station-Id != "00-1A-02-3E-93-28", Auth-Type := Reject davidh User-Password == "secretpass" # There are two things I would like to be able to do separately, one is to delete that set of lines given the username. The second is to change the password or the MAC address given the username. I think the second one is probably easy, using regex some sort of "sed" like command. The first one is a little more demanding on my nuby mind. I guess I can figure out some sort of "grep -v" functionality, but that leaves the line above and below as cruft. Suggestions? Mike B.