<?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: Extract text between single quotes in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999648#M914136</link>
    <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;Set 'awk's field delimiter:&lt;BR /&gt;&lt;BR /&gt;echo "PATH '/nfs.databank/BND/L1/PP3/LSA-rest/la3638g5MR.lb'"|awk -F"'" '{print $2}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 17 Jun 2003 14:17:18 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2003-06-17T14:17:18Z</dc:date>
    <item>
      <title>Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999645#M914133</link>
      <description>I have a file with various lines of text.  There is a section of text between single-quotes that I need to extract (without the single quotes) the text (its a file name).  I looked through the sed help on the forums and I must have a brain-block because I can't figure it out.   Any ideas?&lt;BR /&gt;&lt;BR /&gt;  A sample line of text is below, and I need to extract the path name between the single quotes:  &lt;BR /&gt;&lt;BR /&gt;PATH '/nfs.databank/BND/L1/PP3/LSA-rest/la3638g5MR.lb' ;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2003 14:09:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999645#M914133</guid>
      <dc:creator>Brian K. Arnholt</dc:creator>
      <dc:date>2003-06-17T14:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999646#M914134</link>
      <description>Hi,&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;awk ' /\'/,/\'/ ' YOURFILE&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Jun 2003 14:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999646#M914134</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-17T14:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999647#M914135</link>
      <description>Assume that LINE1 contains the line above&lt;BR /&gt;&lt;BR /&gt;export NEWPATH=`echo $LINE1 |awk '{print $2}' |sed "s/\'//g"`&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Tue, 17 Jun 2003 14:15:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999647#M914135</guid>
      <dc:creator>Ian Dennison_1</dc:creator>
      <dc:date>2003-06-17T14:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999648#M914136</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;Set 'awk's field delimiter:&lt;BR /&gt;&lt;BR /&gt;echo "PATH '/nfs.databank/BND/L1/PP3/LSA-rest/la3638g5MR.lb'"|awk -F"'" '{print $2}'&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 17 Jun 2003 14:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999648#M914136</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2003-06-17T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999649#M914137</link>
      <description>How about ....&lt;BR /&gt;grep "'.*'" filename | sed -e "s/\(.*'\)\(.*\)\('.*\)/\\2/"</description>
      <pubDate>Tue, 17 Jun 2003 14:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999649#M914137</guid>
      <dc:creator>Ian Lochray</dc:creator>
      <dc:date>2003-06-17T14:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract text between single quotes</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999650#M914138</link>
      <description>Thanks, I new it was simple, I just am having one of those days and the forumers came through...&lt;BR /&gt;Both Ian's solutions worked, but JRF's was the cleanest and works great for what I need.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;Brian</description>
      <pubDate>Tue, 17 Jun 2003 14:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/extract-text-between-single-quotes/m-p/2999650#M914138</guid>
      <dc:creator>Brian K. Arnholt</dc:creator>
      <dc:date>2003-06-17T14:48:05Z</dc:date>
    </item>
  </channel>
</rss>

