Created
March 27, 2017 13:37
-
-
Save greymd/08e2fe15b08ef182a6fd0c0e806dc658 to your computer and use it in GitHub Desktop.
cure.glue
This file contains hidden or 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
import /usr/bin/ as ub | |
proc cure = /usr/local/bin/docker 'run' '-i' 'greymd/cureutils' 'cure' argv[1] | |
proc cure_date_stdin = /usr/local/bin/docker 'run' '-i' 'greymd/cureutils' 'cure' 'date' '-f' '-' argv[1] | |
ub.seq '1' '365' >>= | |
ub.sed 's/$/ days ago/' >>= | |
this.cure_date_stdin '+%F @P' >>= | |
this.cure 'grep' >>= | |
ub.sed 's|/.*$||' >>= ub.head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment