Pastebin: ラップトップの電池残量を端末から確認する

Formato
Shell
Post date
2019-07-29 18:07
Publication Period
Unlimited
  1. upower -i "$(upower -e | grep 'battery_BAT' | head -n 1)" | \
  2. grep 'percentage:' | \
  3. tr -s ' ' | \
  4. sed 's/[[:space:]]*percentage/残量/1'
Download Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text