Skip to content
Back to formatted view

Raw Message

Message-ID: <49AC1629.7050102@idi.ntnu.no>
Date: 2009-03-02T17:23:53Z
From: Wacek Kusnierczyk
Subject: Bash script that uses an R command
In-Reply-To: <c502a9e10903020807o21dd65e2m4b1ed51b31892adc@mail.gmail.com>

stephen sefick wrote:
> echo 'hal-device | grep battery.remaining_time | awk '{print$3/3600}'
> | awk '{print int($1)}":"int(60*($1-int($1)))'`
>
> here is the final shell script is anyone is interested - this is
> written and working in debian linux
>   

it can't work -- you have unmatched quotes here.  you can also use a
variable in awk to spare one call to awk.

vQ