<style type="text/css">
    /* Add Social Bookmars Plugin By Aditya Subawa @ www.adityawebs.com */
    ul.aditya-social { list-style:none; margin:15px auto;display:inline-block; }
    ul.aditya-social li { display:inline; float:left; background-repeat:no-repeat; }
    ul.aditya-social li a { display:block; width:48px; height:48px; padding-right:10px; position:relative; text-decoration:none; }
    ul.aditya-social li a strong { font-weight:normal; position:absolute; left:20px; top:-1px; color:#fff; padding:3px; z-index:9999; text-shadow:1px 1px 0 rgba(0, 0, 0, 0.75); background-color:rgba(0, 0, 0, 0.7); -moz-border-radius:3px; -moz-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); -webkit-border-radius:3px; -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); border-radius:3px; box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);}
    ul.aditya-social li.aditya-facebook { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/facebook.png"); }
    ul.aditya-social li.aditya-twitter { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/twitter.png"); }
    ul.aditya-social li.aditya-stumbleupon { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/stumbleupon.png"); }
    ul.aditya-social li.aditya-digg { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/digg.png"); }
    ul.aditya-social li.aditya-delicious { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/delicious.png"); }
    ul.aditya-social li.aditya-yahoo { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/yahoo.png"); }
    ul.aditya-social li.aditya-reddit { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/reddit.png"); }
    ul.aditya-social li.aditya-technorati { background-image:url("/wp-content/plugins/wp-add-socialbookmarks/images/technorati.png"); }
    #aditya-cssanime:hover li { opacity:0.2; }
    #aditya-cssanime li { -webkit-transition-property: opacity; -webkit-transition-duration: 500ms;-moz-transition-property: opacity; -moz-transition-duration: 500ms; }
    #aditya-cssanime li a strong { opacity:0; -webkit-transition-property: opacity, top; -webkit-transition-duration: 300ms; -moz-transition-property: opacity, top; -moz-transition-duration: 300ms; }
    #aditya-cssanime li:hover { opacity:1; }
    #aditya-cssanime li:hover a strong { opacity:1; top:-10px; }
    /* Add Social Bookmarks Plugins By Aditya Subawa @ www.adityawebs.com */
    </style>

{"id":2340,"date":"2017-05-19T17:24:51","date_gmt":"2017-05-19T17:24:51","guid":{"rendered":"http:\/\/johncanning.net\/wp\/?p=2340"},"modified":"2017-05-19T17:30:27","modified_gmt":"2017-05-19T17:30:27","slug":"2340","status":"publish","type":"post","link":"http:\/\/johncanning.net\/wp\/?p=2340","title":{"rendered":"Installing classifier- A file sorter for Linux"},"content":{"rendered":"<p>Linux Format LXF244 contains a short review of Classifier, a useful piece of software for sorting files into their different types. The program can be installed through the Python pip repository via the Terminal (CTRL+ALT+T): The instructions in the magazine are simply:<br \/>\n<code>sudo pip install classifier<\/code><\/p>\n<p><code><\/code><br \/>\nHowever, there are a couple of pre-requisites required in order to make this work 'out of the box' (I'm using Mint 18).<\/p>\n<p>I had already installed Python, but if you need to do this:<\/p>\n<p><code>sudo apt-get install Python<\/code><\/p>\n<p>Pip is installed with Python, but may need to be upgraded. NB the code suggested <a href=\"https:\/\/pip.pypa.io\/en\/stable\/installing\/#do-i-need-to-install-pip\">here<\/a> did not work.<\/p>\n<p><code>pip install --upgrade pip <\/code><\/p>\n<p>Then you can install Classifier:<\/p>\n<p><code>sudo pip install classifier<\/code><\/p>\n<p>Help can be obtained via:<\/p>\n<p><code>classifier --help<\/code><\/p>\n<p>Or<\/p>\n<p><code>classifier -h<\/code><\/p>\n<p>This brings up the following text in the Terminal:<br \/>\nAll commands start with classifier:<\/p>\n<p><code>-h, --help show this help message and exit<br \/>\n-st SPECIFIC_TYPES [SPECIFIC_TYPES ...], --specific-types SPECIFIC_TYPES [SPECIFIC_TYPES ...]<br \/>\nMove all file extensions, given in the args list, in<br \/>\nthe current directory into the Specific Folder<br \/>\n-sf SPECIFIC_FOLDER, --specific-folder SPECIFIC_FOLDER<br \/>\nFolder to move Specific File Type<br \/>\n-o OUTPUT, --output OUTPUT<br \/>\nMain directory to put organized folders<br \/>\n-d DIRECTORY, --directory DIRECTORY<br \/>\nThe directory whose files to classify<br \/>\n-dt, --date Organize files by creation date<\/code><\/p>\n<p>I have used the basic function to sort out my downloads folder which contains a enormous variety of files: In my case:<\/p>\n<p><code>classifier -d Downloads<\/code><\/p>\n<p>Apparently, there is no undo here so be careful.<\/p>\n<p>This sorted my Downloads into various subfolders according to their type.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft wp-image-2343\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2017\/05\/Selection_036-300x68.png\" alt=\"\" width=\"490\" height=\"111\" srcset=\"http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2017\/05\/Selection_036-300x68.png 300w, http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2017\/05\/Selection_036-768x174.png 768w, http:\/\/johncanning.net\/wp\/wp-content\/uploads\/2017\/05\/Selection_036.png 796w\" sizes=\"auto, (max-width: 490px) 100vw, 490px\" \/><\/p>\n\n\n<ul class=\"aditya-social\" id=\"aditya-cssanime\">\n<li class=\"aditya-twitter\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340&amp;url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340\" target=\"_blank\" rel=\"nofollow\" title=\"Twitter\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/twitter.png\" alt=\"Twitter\" title=\"Twitter\" \/><\/a><\/li>\n<li class=\"aditya-delicious\"><a href=\"http:\/\/del.icio.us\/post?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340&amp;title=Installing+classifier-+A+file+sorter+for+Linux\" target=\"_blank\" rel=\"nofollow\" title=\"del.icio.us\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/delicious.png\" alt=\"del.icio.us\" title=\"del.icio.us\" \/><\/a><\/li>\n<li class=\"aditya-digg\"><a href=\"http:\/\/digg.com\/submit?phase=2&amp;url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340&amp;title=Installing+classifier-+A+file+sorter+for+Linux\" target=\"_blank\" rel=\"nofollow\" title=\"Digg\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/digg.png\" alt=\"Digg\" title=\"Digg\" \/><\/a><\/li>\n<li class=\"aditya-facebook\"><a href=\"http:\/\/facebook.com\/sharer.php?u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340&amp;t=Installing+classifier-+A+file+sorter+for+Linux\" target=\"_blank\" rel=\"nofollow\" title=\"Facebook\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/facebook.png\" alt=\"Facebook\" title=\"Facebook\" \/><\/a><\/li>\n<li class=\"aditya-technorati\"><a href=\"http:\/\/technorati.com\/faves?add=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340\" target=\"_blank\" rel=\"nofollow\" title=\"Technorati\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/technorati.png\" alt=\"Technorati\" title=\"Technorati\" \/><\/a><\/li>\n<li class=\"aditya-reddit\"><a href=\"http:\/\/reddit.com\/submit?url=Installing+classifier-+A+file+sorter+for+Linux&amp;u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340\" target=\"_blank\" rel=\"nofollow\" title=\"Reddit\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/reddit.png\" alt=\"Reddit\" title=\"Reddit\" \/><\/a><\/li>\n<li class=\"aditya-yahoo\"><a href=\"http:\/\/buzz.yahoo.com\/submit?submitUrl=Installing+classifier-+A+file+sorter+for+Linux&amp;u=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340\" target=\"_blank\" rel=\"nofollow\" title=\"Yahoo Buzz\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/yahoo.png\" alt=\"Yahoo Buzz\" title=\"Yahoo Buzz\" \/><\/a><\/li>\n<li class=\"aditya-stumbleupon\"><a href=\"http:\/\/stumbleupon.com\/submit?url=http%3A%2F%2Fjohncanning.net%2Fwp%2F%3Fp%3D2340&amp;title=Installing+classifier-+A+file+sorter+for+Linux&amp;newcomment=Installing+classifier-+A+file+sorter+for+Linux\" target=\"_blank\" rel=\"nofollow\" title=\"StumbleUpon\"><img decoding=\"async\" src=\"http:\/\/johncanning.net\/wp\/wp-content\/plugins\/wp-add-social-bookmarks\/images\/stumbleupon.png\" alt=\"StumbleUpon\" title=\"StumbleUpon\" \/><\/a><\/li>\n<\/ul>\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Linux Format LXF244 contains a short review of Classifier, a useful piece of software for sorting files into their different types. The program can be installed through the Python pip repository via the Terminal (CTRL+ALT+T): The instructions in the magazine are simply: sudo pip install classifier However, there are a couple of pre-requisites required in &hellip; <a href=\"http:\/\/johncanning.net\/wp\/?p=2340\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing classifier- A file sorter for Linux<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[180],"tags":[],"class_list":["post-2340","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2340"}],"version-history":[{"count":6,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2340\/revisions"}],"predecessor-version":[{"id":2347,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/2340\/revisions\/2347"}],"wp:attachment":[{"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2340"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/johncanning.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}