<?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: awk field separator in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790544#M943263</link>
    <description>Hi&lt;BR /&gt;Try with this in the beginning of your script:&lt;BR /&gt;BEGIN { FS = \n }&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Aug 2002 06:42:15 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2002-08-21T06:42:15Z</dc:date>
    <item>
      <title>awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790543#M943262</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have a question about awk . Having a file like this&lt;BR /&gt;&lt;BR /&gt;line 1&lt;BR /&gt;line 2&lt;BR /&gt;line 3&lt;BR /&gt;line 4&lt;BR /&gt;line next set of lines&lt;BR /&gt;line 7&lt;BR /&gt;line 8&lt;BR /&gt;line 9&lt;BR /&gt;line next set of lines  ( and so on approx 7000 lines)&lt;BR /&gt;&lt;BR /&gt;i use line next set of lines as recordseparator .&lt;BR /&gt;How do i tell awk that a single line should be one field ?&lt;BR /&gt;I was looking in the knowledge base but i did'nt find it there. Maybe i'm searching wrong.</description>
      <pubDate>Wed, 21 Aug 2002 06:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790543#M943262</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-08-21T06:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790544#M943263</link>
      <description>Hi&lt;BR /&gt;Try with this in the beginning of your script:&lt;BR /&gt;BEGIN { FS = \n }&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 06:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790544#M943263</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-21T06:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790545#M943264</link>
      <description>Hi&lt;BR /&gt;Prehaps you should change the Record separator to a single character.&lt;BR /&gt;BEGIN { FS=\n&lt;BR /&gt; RS=# }&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Aug 2002 06:47:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790545#M943264</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-21T06:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790546#M943265</link>
      <description>Hi Leif &lt;BR /&gt;Thats what i already tried&lt;BR /&gt;and awk is responding with this :&lt;BR /&gt;&lt;BR /&gt;syntax error The source line is 1.&lt;BR /&gt; The error context is&lt;BR /&gt;                BEGIN { FS = &amp;gt;&amp;gt;&amp;gt;  \ &amp;lt;&amp;lt;&amp;lt; n ; counter = 0 }&lt;BR /&gt; awk: The statement cannot be correctly parsed.&lt;BR /&gt; The source line is 1.&lt;BR /&gt; syntax error The source line is 1. &lt;BR /&gt;&lt;BR /&gt;any idea ?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Reinhard</description>
      <pubDate>Wed, 21 Aug 2002 06:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790546#M943265</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-08-21T06:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790547#M943266</link>
      <description>The record separator is no problem.&lt;BR /&gt;Maybe my example is a little bit silly.&lt;BR /&gt;Real i use the single word "DBNAME" as record separator</description>
      <pubDate>Wed, 21 Aug 2002 06:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790547#M943266</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-08-21T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790548#M943267</link>
      <description>Hi&lt;BR /&gt;For some tome ago i have done this but I dont remember exact.&lt;BR /&gt;&lt;BR /&gt;Have you tested witth quotes&lt;BR /&gt;FS= "\n"</description>
      <pubDate>Wed, 21 Aug 2002 06:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790548#M943267</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-08-21T06:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790549#M943268</link>
      <description>&lt;BR /&gt;Check this:&lt;BR /&gt;&lt;BR /&gt;awk ' BEGIN { RS="x"}^J{ print NR , $0 }' /tmp/87&lt;BR /&gt;&lt;BR /&gt;__&amp;gt;1 line 1                                                                                                                         &lt;BR /&gt;line 2                                                                                                                              &lt;BR /&gt;line 3                                                                                                                              &lt;BR /&gt;line 4                                                                                                                              &lt;BR /&gt;line ne                                                                                                                             &lt;BR /&gt;__&amp;gt;2 t set of lines                                                                                                                 &lt;BR /&gt;line 7                                                                                                                              &lt;BR /&gt;line 8                                                                                                                              &lt;BR /&gt;line 9                                                                                                                              &lt;BR /&gt;line ne                                                                                                                             &lt;BR /&gt;__&amp;gt;3 t set of lines &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RS is restricted to one char.</description>
      <pubDate>Wed, 21 Aug 2002 06:58:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790549#M943268</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-08-21T06:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: awk field separator</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790550#M943269</link>
      <description>Great Leif &lt;BR /&gt;&lt;BR /&gt;You got it !!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help.</description>
      <pubDate>Wed, 21 Aug 2002 06:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-field-separator/m-p/2790550#M943269</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-08-21T06:58:16Z</dc:date>
    </item>
  </channel>
</rss>

