<div dir="ltr">thx <br><br><br><div class="gmail_quote">2011/10/18 Miner, Jonathan W (US SSA) <span dir="ltr">&lt;<a href="mailto:jonathan.w.miner@baesystems.com">jonathan.w.miner@baesystems.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
&gt; From: <a href="mailto:users-bounces@lists.fedoraproject.org">users-bounces@lists.fedoraproject.org</a> [<a href="mailto:users-bounces@lists.fedoraproject.org">users-bounces@lists.fedoraproject.org</a>] On Behalf Of Adel ESSAFI<br>

<div class="im">&gt;<br>
&gt; [adel@localhost ~]$ C=g<br>
&gt; [adel@localhost ~]$ awk  -v c=$C &#39;{ print $c }&#39; coran.pls<br>
<br>
</div>Drop the dollar sign from the awk print statement...<br>
<br>
awk -v C=$C &#39;{print c}&#39; coran.pls<br>
<br>
The dollar sign references the FIELD on the input.  So $c will display the c&#39;th field of the line; a more familiar example is NF, or the number of fields.  By itself, NF, prints a number, but $NF prints the last field on the line.<br>

<font color="#888888">--<br>
users mailing list<br>
<a href="mailto:users@lists.fedoraproject.org">users@lists.fedoraproject.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/users</a><br>
Guidelines: <a href="http://fedoraproject.org/wiki/Mailing_list_guidelines" target="_blank">http://fedoraproject.org/wiki/Mailing_list_guidelines</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>PhD candidate in Computer Science<br>Address       <br>3 avenue lamine, cité ezzahra, Sousse 4000<br>Tunisia<br>tel: +216 97 246 706 (+33640302046 jusqu&#39;au 15/6)<br>
fax: +216 71 391 166<br>
</div>