리눅스 grep URL에서 host:port 추출

1 개요[ | ]

리눅스 grep URL에서 host
port 추출
# cat a.txt
http://135.79.246.80:8080/posts/123
http://example.com:8888/hello/world
http://example.org/posts/new
# cat a.txt  | grep -oP '//\K[^/]+'
135.79.246.80:8080
example.com:8888
example.org

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}