![]() |
2013-11-14
, 07:48
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#12
|
#!/bin/sh current=$(bmestat | grep "battery current" | awk '{print $3}') echo $current
![]() |
2013-11-14
, 08:00
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#13
|
![]() |
2013-11-14
, 08:09
|
Posts: 49 |
Thanked: 8 times |
Joined on Oct 2013
|
#14
|
![]() |
2013-11-14
, 08:51
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#15
|
Yes, you're right that does work.
This is what I had:
current = $(bmestat | grep "battery current" | awk '{print $3}' )
echo $current
Note the spaces before and after the = sign and another space before the last bracket.
![]() |
2013-11-14
, 09:30
|
Posts: 49 |
Thanked: 8 times |
Joined on Oct 2013
|
#16
|
![]() |
2013-11-14
, 09:31
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#17
|
The Following User Says Thank You to Schturman For This Useful Post: | ||
Can you post here the whole script you made so far?