Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. Daniel,Rose,DR@example.com,http://www.example.com,1234567890
  2. Daniel1,Rose,DR1@example.com,http://www.example.com,1234567890
  3. Daniel2,Rose,DR2@example.com,http://example.com,1234567890
  4. Daniel3,Rose,DR3@example.com,www.example.com,1234567890
  5. Daniel4,Rose,DR4@example.com,1234567890,example.com
  6.  
  7. DR@example.com
  8. http://www.example.com
  9. DR1@example.com
  10. http://www.example.com
  11. DR3@example.co
  12. www.example.com
  13. DR4@example.com
  14.  
  15. python3 /path/to/get_stuff.py <input_file> <output_file>
  16.  
  17. real 0m0.073s
  18. user 0m0.068s
  19. sys 0m0.000s
  20.  
  21. real 0m0.046s
  22. user 0m0.044s
  23. sys 0m0.000s
  24.  
  25. real 0m0.003s
  26. user 0m0.000s
  27. sys 0m0.000s
  28.  
  29. real 0m0.037s
  30. user 0m0.032s
  31. sys 0m0.000s
  32.  
  33. $ sed -r 's|.*,([^,]+@[^0-9]+),.*|1|' file | tr ',' 'n'
  34. DR@example.com
  35. http://www.example.com
  36. DR1@example.com
  37. http://www.example.com
  38. DR2@example.com
  39. http://example.com
  40. DR3@example.com
  41. www.example.com
  42. DR4@example.com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement