{"id":1484,"date":"2015-10-04T22:13:25","date_gmt":"2015-10-05T06:13:25","guid":{"rendered":"http:\/\/systemsolver.com\/StatlerBlog\/?p=1484"},"modified":"2015-10-04T22:13:25","modified_gmt":"2015-10-05T06:13:25","slug":"linux-command-line-find-then-take-two-actions","status":"publish","type":"post","link":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/2015\/10\/04\/linux-command-line-find-then-take-two-actions\/","title":{"rendered":"Linux command line find then take two actions"},"content":{"rendered":"<p>This is a Linux example of finding files throughout various folders, and for each file found put the file path into a text file then follow that up with the contents of that file.<\/p>\n<p>find \/media\/Office-Files\/Home\/~STAFF -name &#8220;msgFilterRules.dat&#8221; -print0 | while read -d $&#8217;\\0&#8242; file; do echo &#8220;$file&#8221; %&gt;&gt; \/home\/tech\/Documents\/found.txt; cat &#8220;$file&#8221; &gt;&gt; \/home\/tech\/Documents\/found.txt; done<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a Linux example of finding files throughout various folders, and for each file found put the file path into a text file then follow that up with the contents of that file. find \/media\/Office-Files\/Home\/~STAFF -name &#8220;msgFilterRules.dat&#8221; -print0 | while read -d $&#8217;\\0&#8242; file; do echo &#8220;$file&#8221; %&gt;&gt; \/home\/tech\/Documents\/found.txt; cat &#8220;$file&#8221; &gt;&gt; \/home\/tech\/Documents\/found.txt; done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-1484","post","type-post","status-publish","format-standard","hentry","category-general","category-linux"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/comments?post=1484"}],"version-history":[{"count":0,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/posts\/1484\/revisions"}],"wp:attachment":[{"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/media?parent=1484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/categories?post=1484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/systemsolver.goodhealthyday.com\/StatlerBlog\/wp-json\/wp\/v2\/tags?post=1484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}