<?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: field separator in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603544#M823239</link>
    <description>You can further use printf instead of print to have more control over the output. &lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '{printf("%s | %s\n", $2,$3);}'&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
    <pubDate>Tue, 16 Aug 2005 00:12:34 GMT</pubDate>
    <dc:creator>Amit Agarwal_1</dc:creator>
    <dc:date>2005-08-16T00:12:34Z</dc:date>
    <item>
      <title>field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603537#M823232</link>
      <description>Dear Sirs,&lt;BR /&gt;&lt;BR /&gt;I am using $ps -ef|awk '{print $2 $3}'.&lt;BR /&gt;I want to insert field separator between two fields to distinguish the output.&lt;BR /&gt;&lt;BR /&gt;Can anyone help me ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv&lt;BR /&gt;</description>
      <pubDate>Sun, 14 Aug 2005 23:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603537#M823232</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2005-08-14T23:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603538#M823233</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;try:&lt;BR /&gt;ps -ef|awk '{print $2 " " $3}'&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sun, 14 Aug 2005 23:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603538#M823233</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-08-14T23:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603539#M823234</link>
      <description>hi again,&lt;BR /&gt;&lt;BR /&gt;the separator can be any character that you would be putting between the double quotes:&lt;BR /&gt;&lt;BR /&gt;e.g. "-" or "|"&lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '{print $2 "|" $3}'&lt;BR /&gt;&lt;BR /&gt;or ps -ef|awk '{print $2 "-" $3}'&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Sun, 14 Aug 2005 23:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603539#M823234</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2005-08-14T23:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603540#M823235</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You also use a comma if you just want to seperate in 2 columns&lt;BR /&gt;&lt;BR /&gt;$ps -ef|awk '{print $2,$3}'&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Kasper</description>
      <pubDate>Mon, 15 Aug 2005 03:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603540#M823235</guid>
      <dc:creator>Kasper Hedensted</dc:creator>
      <dc:date>2005-08-15T03:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603541#M823236</link>
      <description>Shiv,&lt;BR /&gt;&lt;BR /&gt;you can both use " " and , between line&lt;BR /&gt;selections so;&lt;BR /&gt;$ps -ef|awk '{print $2,$3}'&lt;BR /&gt;or&lt;BR /&gt;ps -ef|awk '{print $2 " " $3}'&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Aug 2005 05:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603541#M823236</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2005-08-15T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603542#M823237</link>
      <description>Shivkumar,&lt;BR /&gt;&lt;BR /&gt;You can customize the field separator to whatever you want i.e. comma, bar, carriage return etc. as long as you specify it within your awk construct like:&lt;BR /&gt;&lt;BR /&gt;# ps -ef | awk '{OFS="&lt;YOUR_CHARACTER&gt;";print $2, $3}'&lt;/YOUR_CHARACTER&gt;</description>
      <pubDate>Mon, 15 Aug 2005 21:13:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603542#M823237</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-08-15T21:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603543#M823238</link>
      <description>I'll say go by the Sandman's OFS.&lt;BR /&gt;&lt;BR /&gt;There will be many situations where you have to use OFS.&lt;BR /&gt;Situations like where your field data contains spaces, tabs and special characters then only OFS will come to  your rescue.</description>
      <pubDate>Tue, 16 Aug 2005 00:08:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603543#M823238</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2005-08-16T00:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603544#M823239</link>
      <description>You can further use printf instead of print to have more control over the output. &lt;BR /&gt;&lt;BR /&gt;ps -ef|awk '{printf("%s | %s\n", $2,$3);}'&lt;BR /&gt;&lt;BR /&gt;-Amit</description>
      <pubDate>Tue, 16 Aug 2005 00:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/field-separator/m-p/3603544#M823239</guid>
      <dc:creator>Amit Agarwal_1</dc:creator>
      <dc:date>2005-08-16T00:12:34Z</dc:date>
    </item>
  </channel>
</rss>

