<?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: Little help awk in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861492#M98366</link>
    <description>Great Jonathan...&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;André</description>
    <pubDate>Tue, 12 Sep 2006 15:34:54 GMT</pubDate>
    <dc:creator>Andre Augusto Ferreira</dc:creator>
    <dc:date>2006-09-12T15:34:54Z</dc:date>
    <item>
      <title>Little help awk</title>
      <link>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861490#M98364</link>
      <description>Hello everybody, how you doing?&lt;BR /&gt;&lt;BR /&gt;Can anyone help me in a case? I have a list with two names:&lt;BR /&gt;&lt;BR /&gt;atibaia:/ # cat list&lt;BR /&gt;atibaia&lt;BR /&gt;aurora&lt;BR /&gt;&lt;BR /&gt;I need to print this names between apostrophe, something like this:&lt;BR /&gt;'atibaia'&lt;BR /&gt;'aurora'&lt;BR /&gt;&lt;BR /&gt;But, I need do this, using awk. I've tried some comands cat list | awk '{ print "'" $1 "'" } or cat list | awk '{ print "\'"$1"\'" }' and nothing... hahaha&lt;BR /&gt;&lt;BR /&gt;Any idea to help me ?!?!?!&lt;BR /&gt;&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;BR /&gt;André</description>
      <pubDate>Tue, 12 Sep 2006 15:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861490#M98364</guid>
      <dc:creator>Andre Augusto Ferreira</dc:creator>
      <dc:date>2006-09-12T15:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Little help awk</title>
      <link>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861491#M98365</link>
      <description>You could set the single quote as a variable using the -v option:&lt;BR /&gt;&lt;BR /&gt;$ cat list | awk -vqt="'" '{print qt$1qt}'&lt;BR /&gt;'atibaia'&lt;BR /&gt;'aurora'&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Sep 2006 15:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861491#M98365</guid>
      <dc:creator>Jonathan Fife</dc:creator>
      <dc:date>2006-09-12T15:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Little help awk</title>
      <link>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861492#M98366</link>
      <description>Great Jonathan...&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help...&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;André</description>
      <pubDate>Tue, 12 Sep 2006 15:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861492#M98366</guid>
      <dc:creator>Andre Augusto Ferreira</dc:creator>
      <dc:date>2006-09-12T15:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Little help awk</title>
      <link>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861493#M98367</link>
      <description>I too couldn't figure out how many "\" are needed to quote the "'".  But you could create an awk script with the "'" already there:&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&lt;EOF&gt; xx_list&lt;BR /&gt;atibaia&lt;BR /&gt;aurora&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;cat &amp;lt;&amp;lt;\EOF &amp;gt; awk_file&lt;BR /&gt;{ print "'"  $1 "'" }&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;awk -f awk_file xx_list&lt;BR /&gt;&lt;BR /&gt;rm -f xx_list awk_file&lt;/EOF&gt;</description>
      <pubDate>Tue, 12 Sep 2006 20:30:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/little-help-awk/m-p/3861493#M98367</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-09-12T20:30:17Z</dc:date>
    </item>
  </channel>
</rss>

