<?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: Awk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293483#M886166</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or you can use awk like below:&lt;BR /&gt;&lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`                    &lt;BR /&gt;do                                         &lt;BR /&gt;FILE=`echo $i|awk -F"." '{print $1}'`      &lt;BR /&gt;mv $i $FILE.fmx                            &lt;BR /&gt;done                                       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
    <pubDate>Thu, 03 Jun 2004 02:14:21 GMT</pubDate>
    <dc:creator>Tapas Jha</dc:creator>
    <dc:date>2004-06-03T02:14:21Z</dc:date>
    <item>
      <title>Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293477#M886160</link>
      <description>Hi,&lt;BR /&gt;i have many files with bad extentions.&lt;BR /&gt;&lt;BR /&gt;File.fmb.fmx.fmx &lt;BR /&gt;&lt;BR /&gt;I need to mv all file to right name file.fmx&lt;BR /&gt;&lt;BR /&gt;How i can do it for change all names ?&lt;BR /&gt;&lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`&lt;BR /&gt;do&lt;BR /&gt;echo change Form $i ....&lt;BR /&gt;???????  &lt;BR /&gt;done&lt;BR /&gt;===============&lt;BR /&gt;Thanks.&lt;BR /&gt;Best regards.&lt;BR /&gt;Francesco</description>
      <pubDate>Wed, 02 Jun 2004 06:13:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293477#M886160</guid>
      <dc:creator>Francesco_13</dc:creator>
      <dc:date>2004-06-02T06:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293478#M886161</link>
      <description>If I understand your query&lt;BR /&gt;&lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`&lt;BR /&gt;do&lt;BR /&gt; FILE=$(echo $i | cut -f1 -d".")&lt;BR /&gt; mv $i ${FILE}.fmx&lt;BR /&gt;done</description>
      <pubDate>Wed, 02 Jun 2004 06:17:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293478#M886161</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-06-02T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293479#M886162</link>
      <description>for i in `ls *.fmb.fmx.fmx`&lt;BR /&gt;do&lt;BR /&gt;echo change Form $i ....&lt;BR /&gt;mv $i `basename $i ".fmb.fmx.fmx"`&lt;BR /&gt;done</description>
      <pubDate>Wed, 02 Jun 2004 06:18:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293479#M886162</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-02T06:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293480#M886163</link>
      <description>Whoops sorry.&lt;BR /&gt; &lt;BR /&gt;SHould be&lt;BR /&gt; &lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`&lt;BR /&gt;do&lt;BR /&gt; mv $i `basename $i .fmb.fmx.fmx`.fmx&lt;BR /&gt;done</description>
      <pubDate>Wed, 02 Jun 2004 06:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293480#M886163</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-06-02T06:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293481#M886164</link>
      <description>Hi Francesco,&lt;BR /&gt;&lt;BR /&gt;You can use the script below:&lt;BR /&gt;&lt;BR /&gt;==============================&lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`&lt;BR /&gt;do&lt;BR /&gt;file=`echo $i | cut -f1 -d"."`&lt;BR /&gt;mv $i $file.fmx&lt;BR /&gt;done&lt;BR /&gt;==============================&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;Anshu</description>
      <pubDate>Wed, 02 Jun 2004 06:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293481#M886164</guid>
      <dc:creator>Anupam Anshu_1</dc:creator>
      <dc:date>2004-06-02T06:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293482#M886165</link>
      <description>for OLDNAME in *.fmb.fmx.fmx&lt;BR /&gt;do&lt;BR /&gt;NEWNAME=`echo $OLDNAME| sed s/fmb.fmx.//`&lt;BR /&gt;mv $OLDNAME $NEWNAME     &lt;BR /&gt;done</description>
      <pubDate>Wed, 02 Jun 2004 06:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293482#M886165</guid>
      <dc:creator>Waldemar Rosinski</dc:creator>
      <dc:date>2004-06-02T06:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293483#M886166</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Or you can use awk like below:&lt;BR /&gt;&lt;BR /&gt;for i in `ls *.fmb.fmx.fmx`                    &lt;BR /&gt;do                                         &lt;BR /&gt;FILE=`echo $i|awk -F"." '{print $1}'`      &lt;BR /&gt;mv $i $FILE.fmx                            &lt;BR /&gt;done                                       &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds&lt;BR /&gt;Tapas</description>
      <pubDate>Thu, 03 Jun 2004 02:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293483#M886166</guid>
      <dc:creator>Tapas Jha</dc:creator>
      <dc:date>2004-06-03T02:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Awk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293484#M886167</link>
      <description># perl -MFile::Copy -e'for(&amp;lt;*.fmx&amp;gt;){$f=$_;s/(\.fm[bx])*\.fmx$/.fmx/;$f eq $_ or move($f,$_)}'&lt;BR /&gt;&lt;BR /&gt;will move&lt;BR /&gt;&lt;BR /&gt;aa.fmb.fmx.fmx =&amp;gt; aa.fmx&lt;BR /&gt;bb.fmx.fmx =&amp;gt; bb.fmx&lt;BR /&gt;cc.fmb.fmx =&amp;gt; cc.fmx&lt;BR /&gt;dd.fmx.fmb.fmx.fmx.fmb.fmb.fmx =&amp;gt; dd.fmx&lt;BR /&gt;ee.fmx =&amp;gt; ee.fmx (unchanged)&lt;BR /&gt;ff.fmb =&amp;gt; ff.fmb (unchanged)&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Thu, 03 Jun 2004 04:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk/m-p/3293484#M886167</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2004-06-03T04:17:19Z</dc:date>
    </item>
  </channel>
</rss>

