{"id":3823,"date":"2014-06-24T08:00:20","date_gmt":"2014-06-24T06:00:20","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=3823"},"modified":"2014-06-24T08:00:20","modified_gmt":"2014-06-24T06:00:20","slug":"perl-cookbook-ch-09-13-lst-list-sorted-directory-contents-depth-first","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2014\/06\/24\/perl-cookbook-ch-09-13-lst-list-sorted-directory-contents-depth-first\/","title":{"rendered":"Perl Cookbook, ch. 09.13: lst \u2013 list sorted directory contents (depth first)"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/resources.oreilly.com\/examples\/9780596003135\/blob\/master\/cookbook.examples\/ch09\/lst\">https:\/\/resources.oreilly.com\/examples\/9780596003135\/blob\/master\/cookbook.examples\/ch09\/lst<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/briandfoy\/PerlPowerTools\/blob\/master\/bin\/ls\">https:\/\/github.com\/briandfoy\/PerlPowerTools\/blob\/master\/bin\/ls<\/a><\/li>\n<\/ul>\n<p>Using &#8220;-l&#8221; for &#8220;long listing&#8221; this utility (&#8220;lst&#8221;) lists the respective time stamp with a precision down to seconds. This utility obviously is a Perl script with rather few depencies.<\/p>\n<p>The &#8220;ls&#8221; of GNU coreutils does this as well with &#8220;&#8211;time-style&#8221; and even nicer (IMO). This utility is a binary one and needs compilation.<\/p>\n<p>&#8220;Perl Power Tools&#8221; (PPT) also have an &#8220;ls&#8221;, and that one is quite easily patched to display any wanted format of the time stamp by making use of POSIX::strftime.<\/p>\n<p>In environments, where I can&#8217;t \/ shouldn&#8217;t really install binary utilities, getting this &#8220;lst&#8221; going is a piece of cake.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/resources.oreilly.com\/examples\/9780596003135\/blob\/master\/cookbook.examples\/ch09\/lst https:\/\/github.com\/briandfoy\/PerlPowerTools\/blob\/master\/bin\/ls Using &#8220;-l&#8221; for &#8220;long listing&#8221; this utility (&#8220;lst&#8221;) lists the respective time stamp with a precision down to seconds. This utility obviously is a Perl script with rather few depencies. The &#8220;ls&#8221; of GNU coreutils does this as well with &#8220;&#8211;time-style&#8221; and even nicer (IMO). This utility is a binary one and needs [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[623,666],"tags":[1219],"class_list":["post-3823","post","type-post","status-publish","format-standard","hentry","category-the-perl-programming-language","category-uncategorized","tag-perl-power-tools"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-ZF","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=3823"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/3823\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=3823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=3823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=3823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}