{"id":13363,"date":"2014-05-25T13:01:56","date_gmt":"2014-05-25T18:01:56","guid":{"rendered":"http:\/\/bucktownbell.com\/?p=13363"},"modified":"2014-05-25T13:01:56","modified_gmt":"2014-05-25T18:01:56","slug":"speeding-up-grep-log-queries-with-gnu-parallel","status":"publish","type":"post","link":"http:\/\/bucktownbell.com\/?p=13363","title":{"rendered":"Speeding Up Grep Log Queries with GNU Parallel"},"content":{"rendered":"<blockquote><p>Enter\u00a0<a class=\"external\" href=\"http:\/\/www.gnu.org\/software\/parallel\/\" target=\"_blank\" rel=\"external,nofollow\">GNU Parallel<\/a>, a shell tool designed for executing tasks in parallel using one or more computers. For my purposes I just ran in on a single system, but wanted to take advantage of multiple cores.<\/p>\n<p>Having enough memory on my system, I loaded the entire massive file into memory and pipe it to GNU Parallel along with another file consisting of thousands of different strings I want to search for in the \u201cPATTERNFILE\u201d:<\/p><\/blockquote>\n<p><code>cat BIGFILE | parallel \u2013pipe grep -f PATTERNFILE<\/code><\/p>\n<p>via <a href=\"http:\/\/www.tripwire.com\/state-of-security\/incident-detection\/speeding-grep-queries-gnu-parallel\/\">Speeding Up Grep Log Queries with GNU Parallel &#8211; The State of Security<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enter\u00a0GNU Parallel, a shell tool designed for executing tasks in parallel using one or more computers. For my purposes I just ran in on a single system, but wanted to take advantage of multiple cores. Having enough memory on my &hellip; <a href=\"http:\/\/bucktownbell.com\/?p=13363\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[1303,28,332],"class_list":["post-13363","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-gnu","tag-linux-command","tag-parallel-processing"],"_links":{"self":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/13363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13363"}],"version-history":[{"count":2,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/13363\/revisions"}],"predecessor-version":[{"id":13365,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=\/wp\/v2\/posts\/13363\/revisions\/13365"}],"wp:attachment":[{"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13363"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bucktownbell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}