{"id":209,"date":"2014-11-06T13:22:49","date_gmt":"2014-11-06T13:22:49","guid":{"rendered":"http:\/\/iddles.co.uk\/blogs\/?p=209"},"modified":"2014-11-06T13:22:49","modified_gmt":"2014-11-06T13:22:49","slug":"tip-produce-an-easy-readable-file-system-tree-on-linux","status":"publish","type":"post","link":"https:\/\/iddles.co.uk\/index.php\/2014\/11\/06\/tip-produce-an-easy-readable-file-system-tree-on-linux\/","title":{"rendered":"Tip: Produce an easy readable file system tree on Linux"},"content":{"rendered":"<p>You have a number of nested folders and want to see a view in a tree style format.\u00a0 Try this alias (BASH only)<\/p>\n<pre><\/pre>\n<pre>$ alias filetree=\"ls -R | grep \":$\" | sed -e 's\/:$\/\/' -e 's\/[^-][^\/]*\/\/--\/g' -e 's\/^\/ \/' -e 's\/-\/|\/'\"\n$ filetree<\/pre>\n<p>Hope it helps at least one of you !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have a number of nested folders and want to see a view in a tree style format.\u00a0 Try this alias (BASH only) $ alias filetree=&#8221;ls -R | grep &#8220;:$&#8221; | sed -e &#8216;s\/:$\/\/&#8217; -e &#8216;s\/[^-][^\/]*\/\/&#8211;\/g&#8217; -e &#8216;s\/^\/ \/&#8217; -e &#8216;s\/-\/|\/'&#8221; $ filetree Hope it helps at least one of you !<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[4],"tags":[],"class_list":["post-209","post","type-post","status-publish","format-standard","hentry","category-linux-nix","post-preview"],"_links":{"self":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=209"}],"version-history":[{"count":0,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/209\/revisions"}],"wp:attachment":[{"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iddles.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}