[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Mar 28 14:33:45 2005 -->
- <!--x-from-r13: tert.serrzlre ng tznvy.pbz (Uert Terrzlre) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] simple awk tolower question -->
- <li><em>date</em>: Mon Mar 28 14:33:45 2005</li>
- <li><em>from</em>: greg.freemyer at gmail.com (Greg Freemyer)</li>
- <li><em>in-reply-to</em>: <<a href="msg00512.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00501.html">[email protected]</a>> <<a href="msg00510.html">[email protected]</a>> <<a href="msg00512.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] simple awk tolower question</li>
Your trying to pass "$1" to awk, right?
If so, you need single quotes I think
awk '{ print tolower($1) }' /tmp/new_users.txt
or try a '\' in front of the $ sign, like
awk "{ print tolower(\$1) }" /tmp/new_users.txt
FYI: You can also do this with tr I believe, and tr is easier to use
for simple tasks.
--
Greg
--
Greg Freemyer
The Norcross Group
Forensics for the 21st Century
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00501" href="msg00501.html">[ale] Anyone got an old sound card they're not using?</a></strong>
<ul><li><em>From:</em> docx at io.com (Dylan Northrup)</li></ul></li>
<li><strong><a name="00510" href="msg00510.html">[ale] Anyone got an old sound card they're not using?</a></strong>
<ul><li><em>From:</em> mike at tyderia.net (Mike Murphy)</li></ul></li>
<li><strong><a name="00512" href="msg00512.html">[ale] simple awk tolower question</a></strong>
<ul><li><em>From:</em> christopher at bergeron.com (Christopher Bergeron)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00512.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00514.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00512.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00514.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00513"><strong>Date</strong></a></li>
<li><a href="threads.html#00513"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>