<?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 and quote in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228004#M893845</link>
    <description>Thanks for you time :-D</description>
    <pubDate>Wed, 24 Mar 2004 06:42:27 GMT</pubDate>
    <dc:creator>Nicolas Dumeige</dc:creator>
    <dc:date>2004-03-24T06:42:27Z</dc:date>
    <item>
      <title>awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227996#M893837</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;How do you protect the simple qote ' using awk's printf ?&lt;BR /&gt;&lt;BR /&gt;I've tried using backslash, it doesn't seems to work properly ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 05:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227996#M893837</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-24T05:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227997#M893838</link>
      <description>Try,&lt;BR /&gt;&lt;BR /&gt;printf "\""&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Wed, 24 Mar 2004 05:42:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227997#M893838</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-24T05:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227998#M893839</link>
      <description>Not " but ' --&amp;gt; simple quote</description>
      <pubDate>Wed, 24 Mar 2004 05:44:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227998#M893839</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-24T05:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227999#M893840</link>
      <description>If you prefer a dirty method you can use tr to substitute,&lt;BR /&gt;&lt;BR /&gt;ex:&lt;BR /&gt;&lt;BR /&gt;ls | awk -F " " '{printf "\"" $1}' | tr \" \'&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Wed, 24 Mar 2004 05:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3227999#M893840</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-24T05:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228000#M893841</link>
      <description>I can't belive that there is no way in awk to print a simple quote !&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 06:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228000#M893841</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-24T06:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228001#M893842</link>
      <description>I found something interesting,&lt;BR /&gt;&lt;BR /&gt;awk 'END {printf("Some '\''single'\'' quoted stuff\n");}' &lt;BR /&gt;Thanks to,&lt;BR /&gt;&lt;A href="http://lists.slug.org.au/archives/slug/2002/11/msg00086.html" target="_blank"&gt;http://lists.slug.org.au/archives/slug/2002/11/msg00086.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Wed, 24 Mar 2004 06:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228001#M893842</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-24T06:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228002#M893843</link>
      <description>My Above example works when I tried this,&lt;BR /&gt;&lt;BR /&gt;ls | awk -F " " '{printf ("'\''''\''\n") $1}'&lt;BR /&gt;&lt;BR /&gt;Too much complicated though ...!!!&lt;BR /&gt;&lt;BR /&gt;-Karthik S S</description>
      <pubDate>Wed, 24 Mar 2004 06:14:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228002#M893843</guid>
      <dc:creator>Karthik S S</dc:creator>
      <dc:date>2004-03-24T06:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228003#M893844</link>
      <description>There is a way :&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;QUOT="'"&lt;BR /&gt;&lt;BR /&gt;echo " " | awk -v quot=$QUOT '{&lt;BR /&gt;printf("this is a quote %s\n",quot);&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jean-Luc</description>
      <pubDate>Wed, 24 Mar 2004 06:16:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228003#M893844</guid>
      <dc:creator>Jean-Luc Oudart</dc:creator>
      <dc:date>2004-03-24T06:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228004#M893845</link>
      <description>Thanks for you time :-D</description>
      <pubDate>Wed, 24 Mar 2004 06:42:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228004#M893845</guid>
      <dc:creator>Nicolas Dumeige</dc:creator>
      <dc:date>2004-03-24T06:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228005#M893846</link>
      <description>Nicolas,&lt;BR /&gt;&lt;BR /&gt;This awk question :-) not yours.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=520677" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=520677&lt;/A&gt;</description>
      <pubDate>Wed, 24 Mar 2004 08:10:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228005#M893846</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-03-24T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: awk and quote</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228006#M893847</link>
      <description>Pedantic perhaps, and perfectly obvious to some perhaps, but I'd like to point out that this has very little to do with awk.&lt;BR /&gt;It is a shell usage problem. The strict answer to the question is: Nothing: You do not need to protect a single quote in  awk printf. Witness:&lt;BR /&gt;&lt;BR /&gt;$ cat &amp;gt; x&lt;BR /&gt;BEGIN {print "test'"}&lt;BR /&gt;$ awk -f x&lt;BR /&gt;test'&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2004 10:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/awk-and-quote/m-p/3228006#M893847</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-03-24T10:02:36Z</dc:date>
    </item>
  </channel>
</rss>

