5 lines
162 B
Bash
5 lines
162 B
Bash
|
#!/bin/bash
|
||
|
mydir1="${0%/*}"
|
||
|
|
||
|
python "${mydir1}/getPage.py" | grep 'id="statusBar_battery" style="">' | grep -o -P '.{0,3}%.{0,0}' | sed 's/>//g' | sed 's/%//g'
|