[olug] bash help (awk/sed)
Sam Tetherow
tetherow at nicusa.com
Fri Jun 18 17:54:09 UTC 2004
We don't need to, it is pretty self evident that if you wanted to do
this project the easy way it would have been done in perl.
And most of us being the purist hackers that we are would not want to
interfer with someone who is obviously trying to accomplish a task in a
convoluted manner for the pure joy of having accomplished something
trivial in a difficult manner using nothing but the virtual equivalent
of duct-tape and a pen-knife.
:)
troehr at nj-onramp.com wrote:
> Now we're just waiting for the Perl Mongers to chime in... ;^)
>
> Later,
>
> Tom
>
> Quoting Mike Hostetler <hostetlerm at gmail.com>:
>
>
>>On Fri, 18 Jun 2004 10:45:01 -0500, troehr at nj-onramp.com
>
>
>><troehr at nj-onramp.com> wrote:
>>
>>>Or to avoid awk,
>>
>>Or use awk for everything:
>>
>>for f in `ls -1 *.txt`; do
>> awk --assign infile=$f '/[0-9]+?-[A-F]/ {print $0 "," infile}' $f
>>done
>>
>>
>>-- mikeh
>>_______________________________________________
>>OLUG mailing list
>>OLUG at olug.org
>>http://lists.olug.org/mailman/listinfo/olug
>>
>
>
>
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
>
--
------------------------------------------------------------------------
Sam Tetherow tetherow at nicusa.com
Director of Development
NIC Labs (PSSG) http://www.nicusa.com
More information about the OLUG
mailing list