Added remaining battery time and percentage to hardware information

This commit is contained in:
Vikash Bajaj 2015-10-23 00:54:54 -07:00
parent dfd16a8fca
commit d685926572

View File

@ -497,6 +497,16 @@ atsutil server -ping
networksetup -listallhardwareports
```
#### Remaining Battery Percentage
```bash
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f1 -d';'
```
#### Remaining Battery Time
```bash
pmset -g batt | egrep "([0-9]+\%).*" -o --colour=auto | cut -f3 -d';'
```
#### Show Connected Device's UDID
```bash
system_profiler SPUSBDataType | sed -n -e '/iPad/,/Serial/p' -e '/iPhone/,/Serial/p'