Last active
August 29, 2015 14:04
-
-
Save inhumantsar/59d323a9c5c5c24899b9 to your computer and use it in GitHub Desktop.
Handy Regex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%s/.*"name":"\([-a-z0-9A-Z.]*\)".*/\1/g | |
Convert {"host":{"name":"host.domain.com","id":348,"hostgroup_id":null,"operatingsystem_id":5}}, to list of hostnames. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment