<?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: sed? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599442#M829447</link>
    <description>&lt;BR /&gt;Here is the "sed only" solution:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sed -n -e 's/^\([^:]*\):.*/\1/' -e 's/\(^[A-Za-z0-9_]\{3,3\}k.*\).*/\1/p' /etc/passwd&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;</description>
    <pubDate>Tue, 09 Aug 2005 08:12:01 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2005-08-09T08:12:01Z</dc:date>
    <item>
      <title>sed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599440#M829445</link>
      <description>May you use sed to achieve the same as below,&lt;BR /&gt;---&lt;BR /&gt;awk -F: '{if(substr($1,4,1)=="k") print $1 }' /etc/passwd&lt;BR /&gt;---&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 07:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599440#M829445</guid>
      <dc:creator>ericfjchen</dc:creator>
      <dc:date>2005-08-09T07:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: sed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599441#M829446</link>
      <description>Using sed is probably possible, but this works also:&lt;BR /&gt;&lt;BR /&gt; cut -d":" -f1 /etc/passwd |grep "^...k"&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 09 Aug 2005 07:44:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599441#M829446</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-08-09T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: sed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599442#M829447</link>
      <description>&lt;BR /&gt;Here is the "sed only" solution:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sed -n -e 's/^\([^:]*\):.*/\1/' -e 's/\(^[A-Za-z0-9_]\{3,3\}k.*\).*/\1/p' /etc/passwd&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Aug 2005 08:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599442#M829447</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-08-09T08:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: sed?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599443#M829448</link>
      <description>A shorter sed solution:&lt;BR /&gt;sed -n -e 's/^\([^:]\{3,3\}k[^:]*\):.*$/\1/p' &lt;BR /&gt;However, I prefer something like Harry's cut-and-grep solution in cases like this.</description>
      <pubDate>Tue, 09 Aug 2005 08:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sed/m-p/3599443#M829448</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-08-09T08:19:31Z</dc:date>
    </item>
  </channel>
</rss>

