[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



I have a text file that has a name in it (/tmp/new_users.txt).

$ cat /tmp/new_users.txt
Smith

I'm trying to convert it to lower case.  Easy enough right?  Here's what 
I'm trying:

$ awk "{ print tolower($1) }" /tmp/new_users.txt
awk: cmd. line:1: fatal: 0 is invalid as number of arguments for tolower


The file may contain multiple lines, so I'd like to convert all the 
lines to all lowercase.  I won't have any funny characters, just 
alphanumeric.

Any ideas?

Thanks in advance to they whom help me.
-CB


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00513" href="msg00513.html">[ale] simple awk tolower question</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
<li><strong><a name="00514" href="msg00514.html">[ale] simple awk tolower question</a></strong>
<ul><li><em>From:</em> greg.freemyer at gmail.com (Greg Freemyer)</li></ul></li>
<li><strong><a name="00518" href="msg00518.html">[ale] simple awk tolower question</a></strong>
<ul><li><em>From:</em> esoteric at 3times25.net (Geoffrey)</li></ul></li>
</ul></li></ul>
<!--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>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00511.html">[ale] OT: Help me! I need an MBA internship this summer!</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00513.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00510.html">[ale] Anyone got an old sound card they're not using?</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00513.html">[ale] simple awk tolower question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00512"><strong>Date</strong></a></li>
<li><a href="threads.html#00512"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>