{"id":444,"date":"2015-07-18T08:25:27","date_gmt":"2015-07-18T02:55:27","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=444"},"modified":"2015-07-18T08:25:27","modified_gmt":"2015-07-18T02:55:27","slug":"list-unique-file-extensions-in-a-folder","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=444","title":{"rendered":"List unique file extensions in a folder"},"content":{"rendered":"<p>I needed to find the different file extensions inside a folder in Debian Linux. I used the following command to do it.<\/p>\n<p><code>find . -type f | perl -ne 'print $1 if m\/\\.([^.\\\/]+)$\/' | sort -u<\/code><\/p>\n<p>I found this code in <a href=\"http:\/\/stackoverflow.com\/questions\/1842254\/how-can-i-find-all-of-the-distinct-file-extensions-in-a-folder-hierarchy\">this link<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to find the different file extensions inside a folder in Debian Linux. I used the following command to do it. find . -type f | perl -ne &#8216;print $1 if m\/\\.([^.\\\/]+)$\/&#8217; | sort -u I found this code in this link.<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,24],"tags":[],"class_list":["post-444","post","type-post","status-publish","format-standard","hentry","category-linux-os","category-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=444"}],"version-history":[{"count":1,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/444\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/444\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}