{"id":838,"date":"2022-12-29T15:33:29","date_gmt":"2022-12-29T14:33:29","guid":{"rendered":"https:\/\/www.cipv6.de\/worp\/?p=838"},"modified":"2024-12-16T10:31:43","modified_gmt":"2024-12-16T09:31:43","slug":"remove-rename-files-with-spaces-in-filenames","status":"publish","type":"post","link":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/","title":{"rendered":"remove\/rename  files with spaces in filename(s)"},"content":{"rendered":"\n<p>Let&#8217;s examine the folder structure:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"630\" data-attachment-id=\"841\" data-permalink=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/cleanshot-2022-12-29-at-15-01-582x\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?fit=978%2C734&amp;ssl=1\" data-orig-size=\"978,734\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CleanShot-2022-12-29-at-15.01.58@2x\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?fit=840%2C630&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?resize=840%2C630&#038;ssl=1\" alt=\"\" class=\"wp-image-841\" srcset=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?w=978&amp;ssl=1 978w, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.01.58%402x.png?resize=768%2C576&amp;ssl=1 768w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a0184fd34690\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a0184fd34690\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#Search_for_files_with_spaces_in_the_filenames\" >Search for files with space(s) in the filename(s)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#Rename_files_with_spaces_in_filenames\" >Rename files with space(s) in filename(s)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#Danger_zone_delete_files_in_current_and_subfolder_with_spaces_in_filenames\" >Danger zone: delete files in current and subfolder with space(s) in filename(s)<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Search_for_files_with_spaces_in_the_filenames\"><\/span>Search for files with space(s) in the filename(s)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To do a  search within the current folder for all files with a space in the filename do:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code lang=\"bash\" class=\"language-bash\">find . -maxdepth 1 -type f -name \"* *\" | while read file; do ls -la   \"$file\"; done |more\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/file 1.txt<\/code><\/pre>\n\n\n\n<p>the &#8220;<strong><em>-maxdepth 1<\/em><\/strong>&#8221; parameter limits the search within the current folder.<br>&#8220;<strong><em>-maxdepth 2<\/em><\/strong>&#8221; would search within the current and the first subfolder(s)<\/p>\n\n\n\n<p>To do a recursive search for all files with a space in the filename do:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code lang=\"bash\" class=\"language-bash\">find . -type f -name \"* *\" | while read file; do ls -la   \"$file\"; done |more\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/1\/subfolder\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/1\/subfolder\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/1\/subfolder\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/1\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/1\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/1\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/3\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/3\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/3\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/2\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/2\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/2\/file 1.txt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Rename_files_with_spaces_in_filenames\"><\/span>Rename files with space(s) in filename(s)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To replace the space with an underscore for files within the current folder execute:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code lang=\"bash\" class=\"language-bash\">find . -maxdepth 1 -type f -name \"* *\" | while read file; do mv \"$file\" ${file\/\/ \/_}; done\n\n\u279c  ordner ls -l\ntotal 24\ndrwxr-xr-x  6 ugu5ma  staff  192 Dec 29 14:51 1\ndrwxr-xr-x  5 ugu5ma  staff  160 Dec 29 14:39 2\ndrwxr-xr-x  5 ugu5ma  staff  160 Dec 29 14:39 3\n-rw-r--r--  1 ugu5ma  staff    6 Dec 29 14:38 file_1.txt\n-rw-r--r--  1 ugu5ma  staff    8 Dec 29 14:38 file_2.txt\n-rw-r--r--  1 ugu5ma  staff   13 Dec 29 14:38 file_3.txt\n\n<\/code><\/pre>\n\n\n\n<p>the files in the subfolders are still untouched:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code lang=\"bash\" class=\"language-bash\">ordner find . -type f -name \"* *\" | while read file; do ls -la   \"$file\"; done |more\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/1\/subfolder\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/1\/subfolder\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/1\/subfolder\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/1\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/1\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/1\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/3\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/3\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/3\/file 1.txt\n-rw-r--r--  1 ugu5ma  staff  8 Dec 29 14:38 .\/2\/file 2.txt\n-rw-r--r--  1 ugu5ma  staff  13 Dec 29 14:38 .\/2\/file 3.txt\n-rw-r--r--  1 ugu5ma  staff  6 Dec 29 14:38 .\/2\/file 1.txt<\/code><\/pre>\n\n\n\n<p>To replace the space with an underscore for files within the current folder and subfolders execute:<\/p>\n\n\n\n<pre class=\"wp-block-code has-medium-gray-background-color has-background\"><code lang=\"bash\" class=\"language-bash\">find . -type f -name \"* *\" | while read file; do mv \"$file\" ${file\/\/ \/_}; done<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"696\" height=\"762\" data-attachment-id=\"842\" data-permalink=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/cleanshot-2022-12-29-at-15-15-502x\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&amp;ssl=1\" data-orig-size=\"696,762\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"CleanShot-2022-12-29-at-15.15.50@2x\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?resize=696%2C762&#038;ssl=1\" alt=\"\" class=\"wp-image-842\" srcset=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?w=696&amp;ssl=1 696w, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?resize=274%2C300&amp;ssl=1 274w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<h2 class=\"has-bright-red-color has-dark-gray-background-color has-text-color has-background wp-block-heading\"><span class=\"ez-toc-section\" id=\"Danger_zone_delete_files_in_current_and_subfolder_with_spaces_in_filenames\"><\/span><strong>Danger zone: delete files in current and subfolder with space(s) in filename(s)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<pre class=\"wp-block-code has-bright-red-color has-dark-gray-background-color has-text-color has-background\"><code lang=\"bash\" class=\"language-bash\">find . -type f -name \"* *\" | while read file; do rm \"$file\"; done<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s examine the folder structure: Search for files with space(s) in the filename(s) To do a search within the current folder for all files with a space in the filename do: the &#8220;-maxdepth 1&#8221; parameter limits the search within the current folder.&#8220;-maxdepth 2&#8221; would search within the current and the first subfolder(s) To do a &hellip; <a href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;remove\/rename  files with spaces in filename(s)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":842,"comment_status":"open","ping_status":"open","sticky":false,"template":"template-page-builder.php","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},"categories":[61,63],"tags":[],"class_list":["post-838","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-macos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>remove\/rename files with spaces in filename(s) - cipv6.de<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"remove\/rename files with spaces in filename(s) - cipv6.de\" \/>\n<meta property=\"og:description\" content=\"Let&#8217;s examine the folder structure: Search for files with space(s) in the filename(s) To do a search within the current folder for all files with a space in the filename do: the &#8220;-maxdepth 1&#8221; parameter limits the search within the current folder.&#8220;-maxdepth 2&#8221; would search within the current and the first subfolder(s) To do a &hellip; Continue reading &quot;remove\/rename files with spaces in filename(s)&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/\" \/>\n<meta property=\"og:site_name\" content=\"cipv6.de\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-29T14:33:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-16T09:31:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50@2x.png\" \/>\n\t<meta property=\"og:image:width\" content=\"696\" \/>\n\t<meta property=\"og:image:height\" content=\"762\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ugu5ma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1\" \/>\n<meta name=\"twitter:creator\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:site\" content=\"@ugu5ma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ugu5ma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/\"},\"author\":{\"name\":\"ugu5ma\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"headline\":\"remove\\\/rename files with spaces in filename(s)\",\"datePublished\":\"2022-12-29T14:33:29+00:00\",\"dateModified\":\"2024-12-16T09:31:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/\"},\"wordCount\":138,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.cipv6.de\\\/worp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1\",\"articleSection\":[\"Linux\",\"MacOS\\\/IOS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/\",\"name\":\"remove\\\/rename files with spaces in filename(s) - cipv6.de\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.cipv6.de\\\/worp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1\",\"datePublished\":\"2022-12-29T14:33:29+00:00\",\"dateModified\":\"2024-12-16T09:31:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.cipv6.de\\\/worp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.cipv6.de\\\/worp\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1\",\"width\":696,\"height\":762},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/index.php\\\/2022\\\/12\\\/29\\\/remove-rename-files-with-spaces-in-filenames\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"remove\\\/rename files with spaces in filename(s)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#website\",\"url\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/\",\"name\":\"cipv6.de\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.cipv6.de\\\/worp\\\/#\\\/schema\\\/person\\\/5d62b275485540be9e5e9e33d4fab86d\",\"name\":\"ugu5ma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\",\"caption\":\"ugu5ma\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/cipv6.de\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"remove\/rename files with spaces in filename(s) - cipv6.de","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/","og_locale":"en_US","og_type":"article","og_title":"remove\/rename files with spaces in filename(s) - cipv6.de","og_description":"Let&#8217;s examine the folder structure: Search for files with space(s) in the filename(s) To do a search within the current folder for all files with a space in the filename do: the &#8220;-maxdepth 1&#8221; parameter limits the search within the current folder.&#8220;-maxdepth 2&#8221; would search within the current and the first subfolder(s) To do a &hellip; Continue reading \"remove\/rename files with spaces in filename(s)\"","og_url":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/","og_site_name":"cipv6.de","article_published_time":"2022-12-29T14:33:29+00:00","article_modified_time":"2024-12-16T09:31:43+00:00","og_image":[{"width":696,"height":762,"url":"https:\/\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50@2x.png","type":"image\/png"}],"author":"ugu5ma","twitter_card":"summary_large_image","twitter_image":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","twitter_creator":"@ugu5ma","twitter_site":"@ugu5ma","twitter_misc":{"Written by":"ugu5ma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#article","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/"},"author":{"name":"ugu5ma","@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"headline":"remove\/rename files with spaces in filename(s)","datePublished":"2022-12-29T14:33:29+00:00","dateModified":"2024-12-16T09:31:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/"},"wordCount":138,"commentCount":0,"publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"image":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","articleSection":["Linux","MacOS\/IOS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/","url":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/","name":"remove\/rename files with spaces in filename(s) - cipv6.de","isPartOf":{"@id":"https:\/\/www.cipv6.de\/worp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#primaryimage"},"image":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","datePublished":"2022-12-29T14:33:29+00:00","dateModified":"2024-12-16T09:31:43+00:00","breadcrumb":{"@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#primaryimage","url":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","width":696,"height":762},{"@type":"BreadcrumbList","@id":"https:\/\/www.cipv6.de\/worp\/index.php\/2022\/12\/29\/remove-rename-files-with-spaces-in-filenames\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cipv6.de\/worp\/"},{"@type":"ListItem","position":2,"name":"remove\/rename files with spaces in filename(s)"}]},{"@type":"WebSite","@id":"https:\/\/www.cipv6.de\/worp\/#website","url":"https:\/\/www.cipv6.de\/worp\/","name":"cipv6.de","description":"","publisher":{"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cipv6.de\/worp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.cipv6.de\/worp\/#\/schema\/person\/5d62b275485540be9e5e9e33d4fab86d","name":"ugu5ma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g","caption":"ugu5ma"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/7211dd31d32612293e4228c8f880721a803dcc15211868f096ea9a8e77b6f316?s=96&d=mm&r=g"},"sameAs":["https:\/\/cipv6.de"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2022\/12\/CleanShot-2022-12-29-at-15.15.50%402x.png?fit=696%2C762&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9uBTs-dw","jetpack-related-posts":[{"id":878,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2024\/02\/03\/ipad-samba-file-transfer-fails\/","url_meta":{"origin":838,"position":0},"title":"iPad Samba file transfer fails","author":"ugu5ma","date":"February 3, 2024","format":false,"excerpt":"To be able to copy files over from iPad to Samba-shares the enhanced compatibility with Apple SMB clients and interoperability with Netatalk 3 AFP fileserver must be enabled.Vfs-module is typically missing if you see in tshark messages like: 310 Create Response, Error: STATUS_OBJECT_NAME_INVALID;Read Response, Error: STATUS_OBJECT_NAME_INVALID;Close Response, Error: STATUS_OBJECT_NAME_INVALID To\u2026","rel":"","context":"In &quot;MacOS\/IOS&quot;","block_context":{"text":"MacOS\/IOS","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/macos\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1275,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2025\/02\/06\/extract-certificate-and-key-from-acme-json\/","url_meta":{"origin":838,"position":1},"title":"Extract certificate and key from acme.json","author":"ugu5ma","date":"February 6, 2025","format":false,"excerpt":"Traefik V2.3 creates a file called acme.json after a successful certification-creation (cert-provider: let's encrypt).To extract the certificate and key from this file I have created this bash-script:https:\/\/github.com\/ugu5ma\/extract_acme_json_traefik","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":72,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2017\/12\/22\/gradle-goodness-rename-ant-task-names-when-importing-ant-build-file\/","url_meta":{"origin":838,"position":2},"title":"Gradle Goodness: Rename Ant Task Names When Importing Ant Build File","author":"ugu5ma","date":"December 22, 2017","format":false,"excerpt":"Source: Gradle Goodness: Rename Ant Task Names When Importing Ant Build File","rel":"","context":"In \"Android\"","block_context":{"text":"Android","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/android\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":324,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2018\/12\/30\/html-skeleton-file-and-vs-code\/","url_meta":{"origin":838,"position":3},"title":"HTML Skeleton file and VS Code","author":"ugu5ma","date":"December 30, 2018","format":false,"excerpt":"Just type ! and press the TAB key :) ! <TAB> creates : <!DOCTYPE html> <html lang=\"en\"> <head> <meta charset=\"UTF-8\"> <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"> <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"> <title>Document<\/title> <\/head> <body> <\/body> <\/html>","rel":"","context":"In \"html\"","block_context":{"text":"html","link":"https:\/\/www.cipv6.de\/worp\/index.php\/tag\/html\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":973,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2024\/09\/06\/manual-steps-for-certificate-based-ssh-communication\/","url_meta":{"origin":838,"position":4},"title":"Lab setup: Secure your SSH communication with certificates","author":"ugu5ma","date":"September 6, 2024","format":false,"excerpt":"When you Ssh the first time to a host the screen shows something like: ssh test@10.50.100.110 The authenticity of host '10.50.100.110 (10.50.100.110)' can't be established. ED25519 key fingerprint is SHA256:jCJ0TIJkKnjgu3RTv5eGER7p4IN5Tb\/JpTEVJNMfpMs. This key is not known by any other names Are you sure you want to continue connecting (yes\/no\/[fingerprint])? Be honest:\u2026","rel":"","context":"In &quot;Security&quot;","block_context":{"text":"Security","link":"https:\/\/www.cipv6.de\/worp\/index.php\/category\/security\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2024\/09\/ssh_cover.jpeg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1279,"url":"https:\/\/www.cipv6.de\/worp\/index.php\/2025\/02\/25\/secure-networking-with-hub-and-spoke-topology-using-wireguard-and-ebgp\/","url_meta":{"origin":838,"position":5},"title":"Secure Networking with Hub-and-Spoke Topology Using WireGuard and eBGP","author":"ugu5ma","date":"February 25, 2025","format":false,"excerpt":"Free Range Routing (FRR)\u00a0is a powerful, open-source routing software suite that provides implementations of various routing protocols, including BGP, OSPF, IS-IS, RIP, PIM, and more. It\u2019s designed to run on Linux and Unix-like systems, making it a flexible solution for a wide range of network setups\u2014from small labs to large-scale\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/02\/VPN-BGP-WireGuard-topology.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/02\/VPN-BGP-WireGuard-topology.jpg?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/02\/VPN-BGP-WireGuard-topology.jpg?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.cipv6.de\/worp\/wp-content\/uploads\/2025\/02\/VPN-BGP-WireGuard-topology.jpg?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/838","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/comments?post=838"}],"version-history":[{"count":0,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/posts\/838\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/media\/842"}],"wp:attachment":[{"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/media?parent=838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/categories?post=838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cipv6.de\/worp\/index.php\/wp-json\/wp\/v2\/tags?post=838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}