Skip to content

Instantly share code, notes, and snippets.

@aw
Created January 5, 2018 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aw/089badaa988e81dcf346a3dd56bda54c to your computer and use it in GitHub Desktop.
Save aw/089badaa988e81dcf346a3dd56bda54c to your computer and use it in GitHub Desktop.
Parse uptime in PicoLisp
# (MIT)
# v1
(setq *Mystr "09:56:51 up 6:46, 1 user, load average: 0.81, 0.45, 0.36")
(extract pack (mapcar clip (split (stem (chop *Mystr) "l" "o" "a" "d" "a" "v" "e" "r" "a" "g" "e" ":") ",")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment