<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Triple-Quote to use a shell variable in awk</title>
	<atom:link href="http://harnly.net/2007/blog/geek/macosx/triple-quote-to-use-a-shell-variable-in-awk/feed/" rel="self" type="application/rss+xml" />
	<link>http://harnly.net/2007/blog/geek/macosx/triple-quote-to-use-a-shell-variable-in-awk/</link>
	<description>Sì, abbiamo un'anima. Ma è fatta di tanti piccoli robot.</description>
	<pubDate>Wed, 19 Nov 2008 04:08:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: patrick</title>
		<link>http://harnly.net/2007/blog/geek/macosx/triple-quote-to-use-a-shell-variable-in-awk/#comment-265</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Fri, 25 May 2007 20:55:53 +0000</pubDate>
		<guid isPermaLink="false">http://harnly.net/2007/blog/computers/macosx/triple-quote-to-use-a-shell-variable-in-awk/#comment-265</guid>
		<description>&lt;p&gt;cool ! works great also with "printf" command ! thanks ...
for curious ;-) I use it with these lines:
acc=$(ls -l --full-time --time=atime $fic &#124; awk '{printf "%s,%s",$6,substr($7,1,8)}')
echo $mod &#124; awk '{printf "%s,%s,%s,%s,%s,%sn",$9,$5,$6,substr($7,1,8),"'"$acc"'",$3}'
This "trick" allows to get "acc" variable in 2nd line in awk command !
Thanks again
Patrick&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>cool ! works great also with &#8220;printf&#8221; command ! thanks &#8230;
for curious <img src='http://harnly.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> I use it with these lines:
acc=$(ls -l &#8211;full-time &#8211;time=atime $fic | awk &#8216;{printf &#8220;%s,%s&#8221;,$6,substr($7,1,8)}&#8217;)
echo $mod | awk &#8216;{printf &#8220;%s,%s,%s,%s,%s,%sn&#8221;,$9,$5,$6,substr($7,1,8),&#8221;&#8216;&#8221;$acc&#8221;&#8216;&#8221;,$3}&#8217;
This &#8220;trick&#8221; allows to get &#8220;acc&#8221; variable in 2nd line in awk command !
Thanks again
Patrick</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.603 seconds -->
