Messing around with knife exec
SEARCH='chef_environment:*dev*' knife exec partial_search.rb
# - name: node-a
# hostname: node-a
# fqdn: node-a.domain.net
# ipaddress: 10.190.116.124
# run_list:
# - role[base_os]
# - recipe[some_cookbook]
# chef_environment: awesome_app_dev
# tags:
# - tag-1
# - tag-3
# - name: node-b.domain.net
# hostname: node-b
# fqdn: node-b.domain.net
# ipaddress: 10.190.115.7
# run_list:
# - role[base_os]
# - recipe[another_cookbook::some_recipe]
# chef_environment: cool_service_dev
# tags:
# - tag-2