Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash get domain from url

echo http://example.com/index.php | awk -F[/:] '{print $4}'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #domain #url
ADD COMMENT
Topic
Name
9+1 =