[R] Bash script that uses an R command

Wacek Kusnierczyk Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Mon Mar 2 18:23:53 CET 2009


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




More information about the R-help mailing list