From d6859265729c1cf9497ef76b896dbdc4a9e051de Mon Sep 17 00:00:00 2001 From: Vikash Bajaj Date: Fri, 23 Oct 2015 00:54:54 -0700 Subject: [PATCH] Added remaining battery time and percentage to hardware information --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 82e09e5..d9ef255 100644 --- a/README.md +++ b/README.md @@ -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'