<?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 escape sequence in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107422#M74681</link>
    <description>--compat or --traditional gaves me the same output problem&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 31 Oct 2003 10:31:36 GMT</pubDate>
    <dc:creator>Denis Goffinet</dc:creator>
    <dc:date>2003-10-31T10:31:36Z</dc:date>
    <item>
      <title>awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107420#M74679</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Under HP-UX awk version, the escape sequence \c permits to continue writing to the same line with the next print command ( no carriage return, new line is set)&lt;BR /&gt;&lt;BR /&gt;Under linux, the escape sequence \c doesn't exist so it replace it by a "c" character&lt;BR /&gt;&lt;BR /&gt;awk: cmd. line:5: warning: escape sequence `\c' treated as plain `c'&lt;BR /&gt;&lt;BR /&gt;Does an equivalent escape sequence or other stuff would work?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Denis</description>
      <pubDate>Fri, 31 Oct 2003 10:08:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107420#M74679</guid>
      <dc:creator>Denis Goffinet</dc:creator>
      <dc:date>2003-10-31T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107421#M74680</link>
      <description>I am no awk expert far from it&lt;BR /&gt;&lt;BR /&gt;I just know there is a compatibility switch in gawk&lt;BR /&gt;&lt;BR /&gt;awk --compat 'your srcipt'&lt;BR /&gt;&lt;BR /&gt;Probably there are other way's&lt;BR /&gt;&lt;BR /&gt;will have a look &lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Oct 2003 10:24:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107421#M74680</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-31T10:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107422#M74681</link>
      <description>--compat or --traditional gaves me the same output problem&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Oct 2003 10:31:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107422#M74681</guid>
      <dc:creator>Denis Goffinet</dc:creator>
      <dc:date>2003-10-31T10:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107423#M74682</link>
      <description>A simple \ &lt;BR /&gt;&lt;BR /&gt;Seem's to do it &lt;BR /&gt;&lt;BR /&gt;extarcted from man page&lt;BR /&gt;&lt;BR /&gt;a line can be continued by ending it  with  a  â  \â  ,  in&lt;BR /&gt;       which case the newline will be ignored.&lt;BR /&gt;&lt;BR /&gt;end of extract from man page.&lt;BR /&gt;&lt;BR /&gt;Does that work ?</description>
      <pubDate>Fri, 31 Oct 2003 11:04:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107423#M74682</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-31T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107424#M74683</link>
      <description>Sorry about mess up character in previous reply &lt;BR /&gt;just did a cut and past from linux man gawk to reply, and should have preview before submit&lt;BR /&gt;&lt;BR /&gt;In my doc here there is also the &lt;BR /&gt;-W posix&lt;BR /&gt;&lt;BR /&gt;switch have you tried that ?&lt;BR /&gt;&lt;BR /&gt;If none of the above works for you could attach a small example script that work under HP-UX and does not work under linux... so we can try or hand at this ?&lt;BR /&gt;&lt;BR /&gt;J-P&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Oct 2003 11:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107424#M74683</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-10-31T11:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107425#M74684</link>
      <description>Use 'printf', instead of 'print'.&lt;BR /&gt; &lt;BR /&gt;'printf' does not automatically add a newline to the end of the line and you can format it anyway you want:&lt;BR /&gt; &lt;BR /&gt;mandy-DEB ## echo -e '\n'| awk '{printf NR " hohoho "}'&lt;BR /&gt;1 hohoho 2 hohoho&lt;BR /&gt; &lt;BR /&gt;mandy-DEB ## echo -e '\n'| awk '{printf NR " hohoho\n"}' &lt;BR /&gt;1 hohoho&lt;BR /&gt;2 hohoho</description>
      <pubDate>Sun, 02 Nov 2003 09:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107425#M74684</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2003-11-02T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107426#M74685</link>
      <description>Huc &amp;gt; a backslash at the end of a line permits to continue a statement on a new line ( very useful when long statement are used at prompt) but do not allow to continue the output of the script to be on the same line.&lt;BR /&gt;    &amp;gt; "-W posix" doesn't seems to change anything as the error message is still the same&lt;BR /&gt;&lt;BR /&gt;Bob &amp;gt; That will do the trick, thank you for this workaround&lt;BR /&gt;&lt;BR /&gt;Thank you all for your help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Denis</description>
      <pubDate>Mon, 03 Nov 2003 02:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107426#M74685</guid>
      <dc:creator>Denis Goffinet</dc:creator>
      <dc:date>2003-11-03T02:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: awk escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107427#M74686</link>
      <description>Nice to know there are some knowledgeable awk reading/answering this forum as I sayed I am no expert, but you got your answer and this allowed me to dig a little in awk and learn more then I could deliver. nice&lt;BR /&gt;&lt;BR /&gt;Thanks for the points.&lt;BR /&gt;&lt;BR /&gt; (Zero points for this answer of course)&lt;BR /&gt;&lt;BR /&gt;J-P</description>
      <pubDate>Mon, 03 Nov 2003 06:33:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/awk-escape-sequence/m-p/3107427#M74686</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-11-03T06:33:38Z</dc:date>
    </item>
  </channel>
</rss>

