<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: dot filenames in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955611#M76914</link>
    <description>Sophia,&lt;BR /&gt;&lt;BR /&gt;this seems to work for me -&lt;BR /&gt;&lt;BR /&gt;$ echo "filename.txt" | sed 's/^\(.*\)\..*/\1/'&lt;BR /&gt;filename&lt;BR /&gt;&lt;BR /&gt;$ echo "filename.txt.gz" | sed 's/^\(.*\)\..*/\1/'&lt;BR /&gt;filename.txt&lt;BR /&gt;&lt;BR /&gt;In case you are new, it is a common practice to assign points to all responses (0-10 points), on the basis of the helpfulness of the answers.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
    <pubDate>Mon, 21 Apr 2003 16:13:56 GMT</pubDate>
    <dc:creator>Ramkumar Devanathan</dc:creator>
    <dc:date>2003-04-21T16:13:56Z</dc:date>
    <item>
      <title>dot filenames</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955608#M76911</link>
      <description>how to remove the dot filenames with extension and null extension?&lt;BR /&gt;&lt;BR /&gt;for e.g file.txt to file&lt;BR /&gt;&lt;BR /&gt;file. to file&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2003 15:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955608#M76911</guid>
      <dc:creator>Avery_1</dc:creator>
      <dc:date>2003-04-21T15:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: dot filenames</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955609#M76912</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;$ basename file.txt ".txt"&lt;BR /&gt;$ basename file. "."&lt;BR /&gt;&lt;BR /&gt;The above would work as long as you know the extension.&lt;BR /&gt;&lt;BR /&gt;else, try this -&lt;BR /&gt;&lt;BR /&gt;echo "file.txt" | awk -F '.' '{for (i=1;i&lt;NF&gt;&lt;/NF&gt;&lt;BR /&gt;HTH.&lt;BR /&gt;- ramd.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2003 15:35:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955609#M76912</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-21T15:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: dot filenames</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955610#M76913</link>
      <description>do you know how to use sed in Bourne shell to remove the dot?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2003 15:54:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955610#M76913</guid>
      <dc:creator>Avery_1</dc:creator>
      <dc:date>2003-04-21T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: dot filenames</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955611#M76914</link>
      <description>Sophia,&lt;BR /&gt;&lt;BR /&gt;this seems to work for me -&lt;BR /&gt;&lt;BR /&gt;$ echo "filename.txt" | sed 's/^\(.*\)\..*/\1/'&lt;BR /&gt;filename&lt;BR /&gt;&lt;BR /&gt;$ echo "filename.txt.gz" | sed 's/^\(.*\)\..*/\1/'&lt;BR /&gt;filename.txt&lt;BR /&gt;&lt;BR /&gt;In case you are new, it is a common practice to assign points to all responses (0-10 points), on the basis of the helpfulness of the answers.&lt;BR /&gt;&lt;BR /&gt;- ramd.</description>
      <pubDate>Mon, 21 Apr 2003 16:13:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955611#M76914</guid>
      <dc:creator>Ramkumar Devanathan</dc:creator>
      <dc:date>2003-04-21T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: dot filenames</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955612#M76915</link>
      <description>do you mean a script to rename &lt;BR /&gt;file.txt&lt;BR /&gt;to &lt;BR /&gt;file?&lt;BR /&gt;&lt;BR /&gt;filz=$(ls | grep ".txt")&lt;BR /&gt;for i in $filz&lt;BR /&gt;do&lt;BR /&gt;mv $i $(echo $i | cut -d . -f 1)&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2003 17:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dot-filenames/m-p/2955612#M76915</guid>
      <dc:creator>John Meissner</dc:creator>
      <dc:date>2003-04-21T17:50:54Z</dc:date>
    </item>
  </channel>
</rss>

