Perhaps 'cool things you can do with awk' would make a good meeting topic. Combined with some advanced regular expression stuff and you've got some serious time savers there.<br><br>--Dennis<br><br><br><br><div class="gmail_quote">
On Tue, Aug 4, 2009 at 3:18 PM, Jim Kinney <span dir="ltr"><<a href="mailto:jim.kinney@gmail.com">jim.kinney@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
slick. very slick, indeed. That is an excellent solution. I did not<br>
know about substitutions like that using awk.<br>
<div><div></div><div class="h5"><br>
On Tue, Aug 4, 2009 at 3:10 PM, Richard Bronosky<<a href="mailto:Richard@bronosky.com">Richard@bronosky.com</a>> wrote:<br>
> That's pretty good. However, you are possibly altering the field<br>
> separator (replacing spaces with tabs) and certainly loosing any<br>
> fields greater than 3. This version changes field 2 and only field 2.<br>
><br>
> cat /etc/hosts | awk '{$2=tolower($2); print}'<br>
><br>
> --<br>
> .!# RichardBronosky #!.<br>
><br>
> On Tue, Aug 4, 2009 at 2:16 PM, Al Snow<<a href="mailto:jasnow@hotmail.com">jasnow@hotmail.com</a>> wrote:<br>
>> cat /etc/hosts | awk '{ print $1, tolower($2), $3 }'<br>
> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
><br>
<br>
<br>
<br>
</div></div><div class="im">--<br>
--<br>
James P. Kinney III<br>
Actively in pursuit of Life, Liberty and Happiness<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</div></div></blockquote></div><br>