{"id":113,"date":"2009-04-29T19:31:25","date_gmt":"2009-04-29T17:31:25","guid":{"rendered":"http:\/\/www.mediamill.de\/blog\/?p=113"},"modified":"2009-04-19T19:32:48","modified_gmt":"2009-04-19T17:32:48","slug":"kombination-der-linuxunix-befehle-find-und-ls-mit-xargs","status":"publish","type":"post","link":"https:\/\/www.mediamill.de\/blog\/2009\/04\/29\/kombination-der-linuxunix-befehle-find-und-ls-mit-xargs\/","title":{"rendered":"Kombination der Linux\/Unix Befehle find und ls mit xargs"},"content":{"rendered":"<p>Ich wollte die Dateigr\u00f6\u00dfe aller Logdateien verschiedener vhosts eines Webservers anschauen. Mit<\/p>\n<p class=\"codeblock\">find \/srv\/ -name access_log.log<\/p>\n<p>konnte ich mir die Logdateien anzeigen lassen. N\u00e4here Informationen zu den Dateien inklusive Dateigr\u00f6\u00dfe erhoffte ich mir von folgendem Befehl:<\/p>\n<p class=\"codeblock\">\/srv\/ -name access_log.log | ls-alh<\/p>\n<p>Die Pipe funktionierte leider nicht so, wie ich es erwartete. Ich bekam nur die Liste der Dateien im aktuellen Ordner. Eine <a title=\"Kombination der Linux Befehle find und ls\" href=\"http:\/\/www.unix.com\/unix-dummies-questions-answers\/6144-broken-pipe.html\" target=\"_blank\">Internetrecherche<\/a> brachte dann die richtige Befehlskombination:<\/p>\n<p class=\"codeblock\">find \/srv\/ -name access_log.log| xargs ls -lah<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ich wollte die Dateigr\u00f6\u00dfe aller Logdateien verschiedener vhosts eines Webservers anschauen. Mit find \/srv\/ -name access_log.log konnte ich mir die Logdateien anzeigen lassen. N\u00e4here Informationen zu den Dateien inklusive Dateigr\u00f6\u00dfe erhoffte ich mir von folgendem Befehl: \/srv\/ -name access_log.log | ls-alh Die Pipe funktionierte leider nicht so, wie ich es erwartete. Ich bekam nur die [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,5,30,6],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-bash-snippets","category-linux","category-linux-befehle","category-tipps"],"_links":{"self":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/comments?post=113"}],"version-history":[{"count":4,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/posts\/113\/revisions\/125"}],"wp:attachment":[{"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/media?parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/categories?post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mediamill.de\/blog\/wp-json\/wp\/v2\/tags?post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}