{"id":21,"date":"2008-10-02T15:45:31","date_gmt":"2008-10-02T13:45:31","guid":{"rendered":"http:\/\/demeringo.ovh.org\/blog\/?p=21"},"modified":"2008-10-02T15:45:31","modified_gmt":"2008-10-02T13:45:31","slug":"ultimate-find","status":"publish","type":"post","link":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/?p=21","title":{"rendered":"Ultimate find&#8230;"},"content":{"rendered":"<p>You have got a directory and subdirectories full of jar\/zip files and you would like to know which one contains the requested &#8220;Message&#8221;  class &#8230; and avoid decompiling everything&#8230;<\/p>\n<pre lang=\"BASH\">\nfor i in `find . -name \"*.jar\"; find . -name \"*.zip\"`;\n  do r=`jar -tvf $i | grep \"Message\"`;\n    if [ \"$r\" != \"\" ]; then echo \"Class found in $i\";\n    else echo \"Not found in $i\";\n    fi;\n  done\n<\/pre>\n<p>Thank you Gabriel&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have got a directory and subdirectories full of jar\/zip files and you would like to know which one contains the requested &#8220;Message&#8221; class &#8230; and avoid decompiling everything&#8230; for i in `find . -name &#8220;*.jar&#8221;; find . -name &#8220;*.zip&#8221;`; do r=`jar -tvf $i | grep &#8220;Message&#8221;`; if [ &#8220;$r&#8221; != &#8220;&#8221; ]; then echo &hellip; <a href=\"https:\/\/le-moulin-de-verre.com\/fieldnotes\/?p=21\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Ultimate find&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[1],"tags":[18],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5WcEf-l","_links":{"self":[{"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=\/wp\/v2\/posts\/21"}],"collection":[{"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21"}],"version-history":[{"count":0,"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=\/wp\/v2\/posts\/21\/revisions"}],"wp:attachment":[{"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/le-moulin-de-verre.com\/fieldnotes\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}