Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ grep --version
- grep (GNU grep) 2.25
- Copyright (C) 2016 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
- $ cat file.txt
- http://example1.com/any-url/
- https://example2.com/any-url/
- http-example3.com/any-url/
- http://example4.com/any-url/
- https://example5.com/any-url/
- $ grep -v '.*:.*' file.txt
- http-example3.com/any-url/
- $ grep -v : file.txt
- http-example3.com/any-url/
- $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement