Created
October 25, 2016 08:38
-
-
Save r9y9/280e94492969ea28585fecbcb4007f04 to your computer and use it in GitHub Desktop.
sedでゴリ押し
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
#!/bin/bash | |
REPL_RESULT=$(kotlinc << EOF | |
import java.time.* | |
println(OffsetDateTime.now().toString()) | |
EOF) | |
TIME_STR=$(echo $REPL_RESULT | sed -e 's/\(.*\)println(OffsetDateTime.now().toString())\(.*\) >>>/\2/g' | awk '{print $1}') | |
echo $TIME_STR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment