Created
April 23, 2018 06:54
-
-
Save funasoul/2c3c5c45e92cbfb575c07044ba38787b to your computer and use it in GitHub Desktop.
get current nendo
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
get_nendo() { | |
foreach i ({0..11}) [ ~ ] | |
local lmonth=`date -v-${i}m '+%m'` | |
if [ $lmonth = "04" ]; then | |
local nendo=`date -v-${i}m '+%Y'` | |
fi | |
end | |
echo "$nendo" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment