Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Alternatives to sed + awk
- Date: Fri, 4 Mar 2011 08:09:53 +0100
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] Alternatives to sed + awk
- References: <AANLkTim_-D9CFYC8TNp33ni85zB+QBA7jV=BpLN=4SbZ@example.com> <AANLkTimhSGxdPk45AMZHqX8eo2PS75K-qkuV+xMS7bdH@example.com> <AANLkTikoMoBNfCQ=jWAVpt2FE+8XShvubF2DwzjrF9g1@example.com> <AANLkTimOSnFAyRZpMzFj7tzOR6vXz2awax_1LQc-m_09@example.com> <4D7038F6.2000508@example.com>
On 4 March 2011 01:57, David Blomberg <dblomber@example.com> wrote: >>> root@example.com:~$ while true; do wc -l /tmp/lauch_code_ripper.log | >>> cut -d' ' -f 1 | perl -ne 'chomp; printf "%.02f%% ", "$_.0" / >>> 596058.0'; sleep 15; done >>> 0.01% 0.01% 0.01% 0.02% 0.02% 0.02% 0.02% 0.02% 0.02% 0.02% ... >> >> A free beer* goes to the first person to find the bug. > > You mean besides that your cut is going to return and empty string... Nope, the cut works just fine. I realise that on some systems, wc(1) will try to format the output "nicely" (that is so annoying!), so I could write: wc -l /var/log/kernel.log | perl -ne '/^\s*(\d+)\s/; printf "%.02f%% ", "$1.0" / 596058.0' But the bug that caught my attention is still there. :) David, you get a small beer of your choice. But the 大瓶 is still up for grabs. --Josh
- Follow-Ups:
- Re: [tlug] Alternatives to sed + awk
- From: Simon Cozens
- References:
- [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: David Blomberg
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Alternatives to sed + awk
- Next by Date: Re: [tlug] Alternatives to sed + awk
- Previous by thread: Re: [tlug] Alternatives to sed + awk
- Next by thread: Re: [tlug] Alternatives to sed + awk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links