Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Extracting Informations from strings



Hi!

I want to parse the output from acpi:
  Battery 1: charging, 95%, charging at zero rate - will never fully charge.

I want to extract the "95%" from the output above.

How can I achieve this from within zsh?


Stefan.



Messages sorted by: Reverse Date, Date, Thread, Author