<?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: remove the last field from a string in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801643#M941877</link>
    <description>&lt;BR /&gt;And don't forget you can use &lt;BR /&gt;&lt;BR /&gt;basename&lt;BR /&gt;&lt;BR /&gt;to grab the last portion off:&lt;BR /&gt;&lt;BR /&gt;abc.txt&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Sep 2002 23:54:27 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-09-06T23:54:27Z</dc:date>
    <item>
      <title>remove the last field from a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801640#M941874</link>
      <description>Hi Folks,&lt;BR /&gt;&lt;BR /&gt;    I have a string like the following&lt;BR /&gt;    $BACD_APPL/xyz/abc/abc.txt&lt;BR /&gt;&lt;BR /&gt;    Now I need to print the string on the screen without the last field (abc.txt)&lt;BR /&gt;    i.e. the output should be $BACD_APPL/xyz/abc/&lt;BR /&gt;&lt;BR /&gt;    I was able to do it using cut and sed, but it comes as two commands. Is any body has single line command solution.&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Fri, 06 Sep 2002 21:04:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801640#M941874</guid>
      <dc:creator>Kris_5</dc:creator>
      <dc:date>2002-09-06T21:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: remove the last field from a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801641#M941875</link>
      <description>dirname abc/def/ghi&lt;BR /&gt;&lt;BR /&gt;will display&lt;BR /&gt;abc/def&lt;BR /&gt;&lt;BR /&gt;Hope this helps...&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 06 Sep 2002 21:11:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801641#M941875</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-06T21:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: remove the last field from a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801642#M941876</link>
      <description>Another way within ksh is&lt;BR /&gt;&lt;BR /&gt;x=/xyz/abc/abc.txt&lt;BR /&gt;echo ${x%/*}&lt;BR /&gt;&lt;BR /&gt;will display&lt;BR /&gt;/xyz/abc&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 06 Sep 2002 21:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801642#M941876</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2002-09-06T21:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: remove the last field from a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801643#M941877</link>
      <description>&lt;BR /&gt;And don't forget you can use &lt;BR /&gt;&lt;BR /&gt;basename&lt;BR /&gt;&lt;BR /&gt;to grab the last portion off:&lt;BR /&gt;&lt;BR /&gt;abc.txt&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Sep 2002 23:54:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801643#M941877</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-09-06T23:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: remove the last field from a string</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801644#M941878</link>
      <description>And use the modifiers in (t)csh:&lt;BR /&gt;&lt;BR /&gt;/W 56 &amp;gt; foreach i ( /W/sv.txt )&lt;BR /&gt;foreach? echo "r" $i:r&lt;BR /&gt;foreach? echo "e" $i:e&lt;BR /&gt;foreach? echo "t" $i:t&lt;BR /&gt;foreach? echo "h" $i:h&lt;BR /&gt;foreach? end&lt;BR /&gt;r /W/sv&lt;BR /&gt;e txt&lt;BR /&gt;t sv.txt&lt;BR /&gt;h /W&lt;BR /&gt;/W 57 &amp;gt;</description>
      <pubDate>Sat, 07 Sep 2002 05:16:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-the-last-field-from-a-string/m-p/2801644#M941878</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2002-09-07T05:16:34Z</dc:date>
    </item>
  </channel>
</rss>

