<?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: String manipulation!! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741389#M946885</link>
    <description>Hi&lt;BR /&gt;As I see you already got a answer whitch solve your problem but have a look at the command "basename" (and dirname), this command is "custom made" for this. For example:&lt;BR /&gt;&lt;BR /&gt;"basename file1.txt .txt"&lt;BR /&gt;&lt;BR /&gt;Will return "file1" .</description>
    <pubDate>Mon, 10 Jun 2002 18:55:01 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2002-06-10T18:55:01Z</dc:date>
    <item>
      <title>String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741385#M946881</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I wanna do a script that extract from a string "that is a filename" everything before the "."  The thing is I don't know the lenght of the file name, but the extension is always the same...  exemple:  file1.txt   I just want the "file1" not the extension .txt&lt;BR /&gt;&lt;BR /&gt;I think I should use "cut" but I'm not familiar with cut... &lt;BR /&gt;&lt;BR /&gt;Can somebody help me please!! &lt;BR /&gt;Regards&lt;BR /&gt;Jonathan&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 16:33:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741385#M946881</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2002-06-10T16:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741386#M946882</link>
      <description>cut -d"." -f1&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 10 Jun 2002 16:35:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741386#M946882</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-10T16:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741387#M946883</link>
      <description>Thanks Harry!!&lt;BR /&gt;&lt;BR /&gt;That's what I was trying to do!!!</description>
      <pubDate>Mon, 10 Jun 2002 16:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741387#M946883</guid>
      <dc:creator>Jonathan Caplette</dc:creator>
      <dc:date>2002-06-10T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741388#M946884</link>
      <description>If it is a ksh script, you can do the following&lt;BR /&gt;&lt;BR /&gt;x="the file name.txt"&lt;BR /&gt;y=${x%.*}&lt;BR /&gt;echo $y&lt;BR /&gt;&lt;BR /&gt;will display-&lt;BR /&gt;the file name&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Mon, 10 Jun 2002 17:12:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741388#M946884</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-06-10T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741389#M946885</link>
      <description>Hi&lt;BR /&gt;As I see you already got a answer whitch solve your problem but have a look at the command "basename" (and dirname), this command is "custom made" for this. For example:&lt;BR /&gt;&lt;BR /&gt;"basename file1.txt .txt"&lt;BR /&gt;&lt;BR /&gt;Will return "file1" .</description>
      <pubDate>Mon, 10 Jun 2002 18:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741389#M946885</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-06-10T18:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: String manipulation!!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741390#M946886</link>
      <description>Leif,&lt;BR /&gt;&lt;BR /&gt;I would have directed him to "basename", but I forgot the command, so I just showed him "cut".&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Jun 2002 19:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/string-manipulation/m-p/2741390#M946886</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-06-10T19:04:17Z</dc:date>
    </item>
  </channel>
</rss>

