<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: The Ultimate Guide to Handling Filenames with Special Characters in Linux	</title>
	<atom:link href="https://www.tecmint.com/special-character-filenames-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/special-character-filenames-linux/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 27 Sep 2024 06:10:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-2220950</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Fri, 27 Sep 2024 06:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13997#comment-2220950</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-2214093&quot;&gt;eddie&lt;/a&gt;.

@Eddie,

You can use a bash script to convert the files while preserving their names with spaces.
&lt;pre&gt;
#!/bin/bash

for file in *.mp4; do
    # Remove the file extension and create a new name with .mp3
    new_file=&quot;${file%.mp4}.mp3&quot;
    
    # Use your conversion command here (e.g., ffmpeg)
    ffmpeg -i &quot;$file&quot; &quot;$new_file&quot;
done
&lt;/pre&gt;
Make sure to run this script in the directory containing your files, and it will convert all &lt;code&gt;.mp4&lt;/code&gt; files to &lt;code&gt;.mp3&lt;/code&gt; while keeping the original names intact.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-2214093">eddie</a>.</p>
<p>@Eddie,</p>
<p>You can use a bash script to convert the files while preserving their names with spaces.</p>
<pre>
#!/bin/bash

for file in *.mp4; do
    # Remove the file extension and create a new name with .mp3
    new_file="${file%.mp4}.mp3"
    
    # Use your conversion command here (e.g., ffmpeg)
    ffmpeg -i "$file" "$new_file"
done
</pre>
<p>Make sure to run this script in the directory containing your files, and it will convert all <code>.mp4</code> files to <code>.mp3</code> while keeping the original names intact.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: eddie		</title>
		<link>https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-2214093</link>

		<dc:creator><![CDATA[eddie]]></dc:creator>
		<pubDate>Thu, 12 Sep 2024 15:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13997#comment-2214093</guid>

					<description><![CDATA[I have 22 files with long names, including several spaces in each name. I want to convert the files using a bash script while preserving the names, e.g., convert &#039;&lt;strong&gt;now only dance with me.mp4&lt;/strong&gt;&#039; to &#039;&lt;strong&gt;now only dance with me.mp3&lt;/strong&gt;.&#039; 

Converting the file is not the problem; it’s how to preserve the original name, including the spaces. Is it even possible using a bash script?]]></description>
			<content:encoded><![CDATA[<p>I have 22 files with long names, including several spaces in each name. I want to convert the files using a bash script while preserving the names, e.g., convert &#8216;<strong>now only dance with me.mp4</strong>&#8216; to &#8216;<strong>now only dance with me.mp3</strong>.&#8217; </p>
<p>Converting the file is not the problem; it’s how to preserve the original name, including the spaces. Is it even possible using a bash script?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vijay Prakash Sharma		</title>
		<link>https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-1822698</link>

		<dc:creator><![CDATA[Vijay Prakash Sharma]]></dc:creator>
		<pubDate>Fri, 10 Jun 2022 15:53:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13997#comment-1822698</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-750705&quot;&gt;inukaze&lt;/a&gt;.

You can use a single quote with any character to copy and move anywhere like this. The file name does not matter whether it is long or short, USE a single quote
&lt;pre&gt;
[root@ip-172-31-2-191 test]# touch &#039;[!](EJU)#_()&#039;
[root@ip-172-31-2-191 test]# ls -l
-rw-r--r-- 1 root root 0 Jun 10 15:51 [!](EJU)#_()
[root@ip-172-31-2-191 test]# mv &#039;[!](EJU)#_()&#039; /root
[root@ip-172-31-2-191 test]# ls -l /root
total 0
-rw-r--r-- 1 root root  0 Jun 10 15:51 [!](EJU)#_()
&lt;/pre&gt;
]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-750705">inukaze</a>.</p>
<p>You can use a single quote with any character to copy and move anywhere like this. The file name does not matter whether it is long or short, USE a single quote</p>
<pre>
[root@ip-172-31-2-191 test]# touch '[!](EJU)#_()'
[root@ip-172-31-2-191 test]# ls -l
-rw-r--r-- 1 root root 0 Jun 10 15:51 [!](EJU)#_()
[root@ip-172-31-2-191 test]# mv '[!](EJU)#_()' /root
[root@ip-172-31-2-191 test]# ls -l /root
total 0
-rw-r--r-- 1 root root  0 Jun 10 15:51 [!](EJU)#_()
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Vijay Prakash Sharma		</title>
		<link>https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-1822693</link>

		<dc:creator><![CDATA[Vijay Prakash Sharma]]></dc:creator>
		<pubDate>Fri, 10 Jun 2022 15:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13997#comment-1822693</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-1652906&quot;&gt;santosh&lt;/a&gt;.

mv &quot;File Name with Space&quot;  &quot;Full Path of file name&quot;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-1652906">santosh</a>.</p>
<p>mv &#8220;File Name with Space&#8221;  &#8220;Full Path of file name&#8221;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: santosh		</title>
		<link>https://www.tecmint.com/special-character-filenames-linux/comment-page-1/#comment-1652906</link>

		<dc:creator><![CDATA[santosh]]></dc:creator>
		<pubDate>Thu, 18 Nov 2021 05:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=13997#comment-1652906</guid>

					<description><![CDATA[How can I move files from one place to another if it contains spaces using a shell?]]></description>
			<content:encoded><![CDATA[<p>How can I move files from one place to another if it contains spaces using a shell?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
