Advertisement
Keith_S_Thompson

Untitled

Nov 2nd, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $ grep --version
  2. grep (GNU grep) 2.25
  3. Copyright (C) 2016 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.
  7.  
  8. Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
  9. $ cat file.txt
  10. http://example1.com/any-url/
  11. https://example2.com/any-url/
  12. http-example3.com/any-url/
  13. http://example4.com/any-url/
  14. https://example5.com/any-url/
  15. $ grep -v '.*:.*' file.txt
  16. http-example3.com/any-url/
  17. $ grep -v : file.txt
  18. http-example3.com/any-url/
  19. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement