Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have the data like this :
- [Mohan@localhost Office]$ cat str.txt
- demo demo@hotmail.com 1 4 25 2 0.25
- test srmvel@hotmail.com 1 4 25 2 0.25
- test srmvel@hotmail.com 1 1 20 2 0.25
- \N al@hotmail.com 1 1 20 14 3706.59
- \N al@hotmail.com 1 1 15 14 3706.59
- \N al@hotmail.com 1 1 20 14 3706.59
- \N al@hotmail.com 1 1 15 14 3706.59
- \N al@hotmail.com 1 1 10 14 3706.59
- \N al@hotmail.com 1 1 10 14 3706.59
- \N al@hotmail.com 1 1 25 14 3706.59
- \N al@hotmail.com 1 1 25 14 3706.59
- home home@gmail.com 1 4 25 2 0.25
- Jorge jor@jorge.com 1 4 25 2 0.25
- N.A. dyeotb@hotmail.com 1 1 20 14 3706.59
- Own gpradeepg@gmail.com 1 1 70 1 172.37
- Own gpradeepg@gmail.com 1 4 30 1 172.37
- VISI jhatch@visi.com 1 1 15 1 0.08
- VIT adivik2000@hotmail.com 1 1 10 0 0.08
- [Mohan@localhost Office]$ awk '$1!~/test/ || $2!~/@gmail.com/ { print }' str.txt
- demo demo@hotmail.com 1 4 25 2 0.25
- test srmvel@hotmail.com 1 4 25 2 0.25
- test srmvel@hotmail.com 1 1 20 2 0.25
- \N al@hotmail.com 1 1 20 14 3706.59
- \N al@hotmail.com 1 1 15 14 3706.59
- \N al@hotmail.com 1 1 20 14 3706.59
- \N al@hotmail.com 1 1 15 14 3706.59
- \N al@hotmail.com 1 1 10 14 3706.59
- \N al@hotmail.com 1 1 10 14 3706.59
- \N al@hotmail.com 1 1 25 14 3706.59
- \N al@hotmail.com 1 1 25 14 3706.59
- home home@gmail.com 1 4 25 2 0.25
- Jorge jor@jorge.com 1 4 25 2 0.25
- N.A. dyeotb@hotmail.com 1 1 20 14 3706.59
- Own gpradeepg@gmail.com 1 1 70 1 172.37
- Own gpradeepg@gmail.com 1 4 30 1 172.37
- VISI jhatch@visi.com 1 1 15 1 0.08
- VIT adivik2000@hotmail.com 1 1 10 0 0.08
- See still it is not removing.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement