{"id":1454,"date":"2018-07-10T11:12:03","date_gmt":"2018-07-10T09:12:03","guid":{"rendered":"http:\/\/clark.tipistrani.it\/?p=1454"},"modified":"2018-07-10T11:19:11","modified_gmt":"2018-07-10T09:19:11","slug":"rinominare-ricorsivamente-i-files-in-una-directory","status":"publish","type":"post","link":"http:\/\/clark.tipistrani.it\/?p=1454","title":{"rendered":"Rinominare ricorsivamente i files in una directory"},"content":{"rendered":"<p>Sempre nell&#8217;ottica del passaggio al nuovo gestionale mi son trovato a dover rinominare tutti i files .pdf di una directory e delle sue subdir, che sono una follia numericamente parlando, eliminando gli spazi nei nomi, anche in questo caso il comando find con i suoi flag mi ha risolto la questione.<\/p>\n<p>root@urania:\/home\/archiviopdf# find . -depth -iname &#8220;*.pdf&#8221; -execdir rename &#8216;s\/ \/\/g&#8217; &#8220;{}&#8221; \\;<br \/>\nIn poco pi\u00f9 di una ventina di minuti ha fatto tutto come si deve<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sempre nell&#8217;ottica del passaggio al nuovo gestionale mi son trovato a dover rinominare tutti i files .pdf di una directory e delle sue subdir, che sono una follia numericamente parlando, eliminando gli spazi nei nomi, anche in questo caso il comando find con i suoi flag mi ha risolto la questione. root@urania:\/home\/archiviopdf# find . -depth [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,6],"tags":[127,128],"class_list":["post-1454","post","type-post","status-publish","format-standard","hentry","category-linux","category-work","tag-find","tag-rename"],"_links":{"self":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1454"}],"version-history":[{"count":4,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1454\/revisions"}],"predecessor-version":[{"id":1463,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=\/wp\/v2\/posts\/1454\/revisions\/1463"}],"wp:attachment":[{"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1454"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/clark.tipistrani.it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}