Last active
March 29, 2020 18:49
-
-
Save agausmann/8e6e0d1865594cb91eac79e16d1979c0 to your computer and use it in GitHub Desktop.
Alternative to sed for status rewriting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# emojis omitted because I don't want to go fetch them | |
case "$status" in | |
Discharging) status="" ;; | |
Not charging) status="" ;; | |
Charging) status="" ;; | |
Unknown) status="" ;; | |
Full) status="" ;; | |
esac | |
# ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
re: https://www.youtube.com/watch?v=XypZGzWOO-U