AOA,
I want a script for user delete & search from the file.
The file format is:
zia.ali zia.ali@mydomain.com
saleem.khans saleem.khan@mydomain.com
abdul.ghani abdul.ghani@mydomain.com
adnan.siddiqui adnan.siddiqui@mydomain.com
User delete & search!
-
- Subedar
- Posts: 355
- Joined: Sat May 07, 2005 11:54 am
- Location: Lahore
- Contact:
learn sed http://www.grymoire.com/Unix/Sed.htmlI want a script for user delete & search from the file.
Regards
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
sed won't help here. awk, perl, python, ruby, or even plain old /bin/sh will.
Watch out for the Manners Taliban!
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear ranatanveer,
Salam,
telenor, If you try to search at Porgamming Section of Linux Pakistan, I am sure you will find solution as lambda have given this task to Linux Pakistan Forum Members.
Best Regards.
Salam,
Indeed. I totally agree with lambda.lambda wrote:sed won't help here. awk, perl, python, ruby, or even plain old /bin/sh will.
telenor, If you try to search at Porgamming Section of Linux Pakistan, I am sure you will find solution as lambda have given this task to Linux Pakistan Forum Members.
Best Regards.
Farrukh Ahmed
-
- Subedar
- Posts: 355
- Joined: Sat May 07, 2005 11:54 am
- Location: Lahore
- Contact:
Wa Alaikum Salam, LinuxFreak
I don't want to argue with you and lambda, i always respect you from my hear, because i have learned a lot from both of you.
but here i want to share that, i only know bash awk and sed and a little perl, and i am capable to do anything i want to do.
so the request of telenor:
I don't want to argue with you and lambda, i always respect you from my hear, because i have learned a lot from both of you.
but here i want to share that, i only know bash awk and sed and a little perl, and i am capable to do anything i want to do.
so the request of telenor:
this work can be done simply with 1 line sed (if meaning of telenor saying is same ), as sed has both search and replace/delete patterns. (moreover sed and awk has many more capabilities which are unknown to me )I want a script for user delete & search from the file.
Regards
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com
Rana Tanveer
+923224194457
Linux Student
For Affordable Web Development http://www.affordableprogrammers.com
http://www.qualityprogrammers.com