I have a users record file in plain text format , all users have same record entry except their usename and password , now i want to delete a specific record entry but when i try to delete a john entry it deletes both john and john12 entries , kindly tell me how can i achive my result
john Password = "john"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
john12 Password = "john12"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
shag Password = "shag"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
a-a-scot Password = "xyz234"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
john Password = "john"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
john12 Password = "john12"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
shag Password = "shag"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300
a-a-scot Password = "xyz234"
User-Service = Framed-User,
Framed-Protocol = PPP,
Ascend-Assign-IP-Pool = 1,
Ascend-Idle-Limit = 300