Mailing List Archive


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

Re: [tlug] Alternatives to sed + awk



On 3/4/11 1:09 AM, Josh Glover wrote:
On 3 March 2011 16:58, Josh Glover<jmglov@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.

Cheers,
Josh

* Redeemable at the pub of your choice in Stockholm

You mean besides that your cut is going to return and empty string...

--
Thank You

David Blomberg




Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links