{"id":1809,"date":"2015-11-12T00:00:24","date_gmt":"2015-11-11T15:00:24","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=1809"},"modified":"2016-12-09T08:36:25","modified_gmt":"2016-12-08T23:36:25","slug":"shell_script_get_holidays","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/shell_script_get_holidays.html","title":{"rendered":"\u65e5\u672c\u306e\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8(\u30d0\u30c3\u30c1\u51e6\u7406\u30d7\u30ed\u30b0\u30e9\u30e0)(\u300c\u5c71\u306e\u65e5\u300d\u5bfe\u5fdc) – \u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb(ICS\u30d5\u30a1\u30a4\u30eb)\u3067\u795d\u65e5\u306e\u53d6\u5f97 \u301c2015\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012016\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012017\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012018\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012019\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u30012020\u5e74\u306e\u795d\u65e5\u4e00\u89a7\u301c"},"content":{"rendered":"
\u904b\u7528\u7cfb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u6642\u3005\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002
\n\u30cb\u30fc\u30ba\u3068\u3057\u3066\u306f\u795d\u65e5\u306e\u6642\u306e\u307f\u51e6\u7406\u3092\u505c\u6b62\u3057\u305f\u3044\u3001\u571f\u65e5\u795d\u65e5\u306e\u6642\u306b\u51e6\u7406\u3092\u505c\u6b62\u3057\u305f\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002<\/p>\n
AWS\u95a2\u4fc2\u3067\u306fAWS Lambda\u3092\u30b9\u30b1\u30b8\u30e5\u30fc\u30ea\u30f3\u30b0\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u571f\u65e5\u795d\u65e5\u4ee5\u5916\u306e\u65e5\u306b\u6307\u5b9a\u6642\u9593\u306b\u30b9\u30bf\u30fc\u30c8\u3055\u305b\u305f\u308a\u3001\u30b9\u30c8\u30c3\u30d7\u3055\u305b\u305f\u308a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u3002<\/p>\n
\u4eca\u56de\u306f\u3001\u3053\u306e\u3088\u3046\u306a\u30b7\u30b9\u30c6\u30e0\u306e\u904b\u7528\u9762\u3067\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
\n\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3042\u308c\u3070\u3001AWS Lambda\u3067\u3082Python\u7b49\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u5b9f\u884c\u3067\u304d\u307e\u3059\u3057\u3001\u4ed6\u306e\u30b5\u30fc\u30d0\u5185\u3067\u3082\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u306e\u3067\u3001\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306e\u5b9f\u88c5\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n
\u795d\u65e5\u306f\u6b63\u78ba\u306b\u65e5\u4ed8\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u65e5\u3082\u3042\u308c\u3070\u3001\u6708\u306e\u4f55\u9031\u76ee\u306e\u4f55\u66dc\u65e5\u306e\u3088\u3046\u306a\u6307\u5b9a\u3001\u65b0\u3057\u304f\u5b9a\u3081\u3089\u308c\u305f\u795d\u65e5\u306a\u3069\u8a08\u7b97\u3067\u306f\u5272\u308a\u51fa\u305b\u306a\u3044\u3068\u3044\u3046\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002
\n\u305d\u306e\u305f\u3081\u3001\u795d\u65e5\u306e\u53d6\u5f97\u306b\u95a2\u3057\u3066\u306fApple\u3084Google\u306a\u3069\u306e\u6709\u540d\u30d9\u30f3\u30c0\u30fc\u304c\u516c\u958b\u3057\u3066\u3044\u308b\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n
\u4e0b\u8a18\u3067\u306f\u5b9f\u969b\u306bApple\u3001Google\u3001Mozilla\u306a\u3069\u4efb\u610f\u306eICS\u5f62\u5f0f\u306e\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002
\n\u5f8c\u8ff0\u3057\u307e\u3059\u304c\u3001Google\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u30672016\u5e74\u304b\u3089\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305f\u795d\u65e5\u300c\u5c71\u306e\u65e5\u300d\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n
\r\n[magtranetwork@localhost ~]$ vim get_holidays.sh\r\n#!\/bin\/bash\r\n\r\n#\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3001\u7de8\u96c6\u3059\u308b\u4e00\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3059\u308b\r\ntmp_dir=\/tmp\r\n\r\n#\u4e00\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3059\u308b\r\nmkdir -p ${tmp_dir}\r\n\r\n#\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\u306b\u30b3\u30de\u30f3\u30c9\u5f15\u6570\u3092\u4ee3\u5165\u3059\u308b\r\ntarget=${1}\r\n\r\n#\u4f7f\u7528\u3059\u308bICS\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30ebURL\r\n#Apple\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\r\n#ICS=https:\/\/ical.mac.com\/ical\/Japanese32Holidays.ics\r\n\r\n#Google\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\r\nICS=https:\/\/www.google.com\/calendar\/ical\/ja.japanese%23holiday%40group.v.calendar.google.com\/public\/basic.ics\r\n\r\n#Mozilla\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\r\n#ICS=https:\/\/www.mozilla.org\/projects\/calendar\/caldata\/JapanHolidays.ics\r\n\r\n#\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092JapanHolidays.ics\u306e\u540d\u79f0\u3067\u4e00\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u4fdd\u5b58\u3059\u308b\u3002\r\ncurl -s -S -L -o ${tmp_dir}\/JapanHolidays.ics ${ICS}\r\n\r\n#\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30ab\u30ec\u30f3\u30c0\u30fc\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3057\u3001[\u5e74\u6708\u65e5\u6587\u5b57\u5217 \u795d\u65e5\u540d\u79f0]\u306e\u5f62\u5f0f\u3067JapanHolidays.txt\u3068\u3044\u3046\u540d\u79f0\u3067\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u3059\u308b\r\ncat ${tmp_dir}\/JapanHolidays.ics | grep -e "DTSTART;VALUE=DATE" -e SUMMARY -e "BEGIN:VEVENT" -e "END:VEVENT" | tr -d '\\r\\n' | sed 's\/END:VEVENT\/\\n\/g' | sed 's\/BEGIN:VEVENT\/\/g' | sed 's\/:\/ \/g' | sed 's\/SUMMARY\/ \/g' | awk '{print $2,$NF}' | awk '{if ( $1 ~\/^[0-9]+$\/){ print $1,$NF}else{ print $NF,$1}}' | sort -k 1 > ${tmp_dir}\/JapanHolidays.txt\r\n\r\nif [ "${target}" = "" ]; then\r\n #\u30b3\u30de\u30f3\u30c9\u5f15\u6570\u304c\u306a\u3044\u5834\u5408\u306fJapanHolidays.txt\u306e\u4e2d\u8eab\u3092\u5168\u3066\u8868\u793a\u3059\u308b\r\n cat ${tmp_dir}\/JapanHolidays.txt\r\nelse\r\n #\u30b3\u30de\u30f3\u30c9\u5f15\u6570\u304c\u3042\u308b\u5834\u5408\u306fJapanHolidays.txt\u306e\u4e2d\u8eab\u3092\u691c\u7d22\u5bfe\u8c61\u6587\u5b57\u5217\u3067\u524d\u65b9\u4e00\u81f4\u691c\u7d22\u3057\u3001\u8868\u793a\u3059\u308b\r\n cat ${tmp_dir}\/JapanHolidays.txt | grep ^${target}\r\nfi\r\n\r\n#\u4e00\u6642\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u4e00\u6642\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\r\nrm -f ${tmp_dir}\/JapanHolidays.ics ${tmp_dir}\/JapanHolidays.ics\r\nrm -f ${tmp_dir}\/JapanHolidays.ics ${tmp_dir}\/JapanHolidays.txt\r\n\r\n<\/pre>\n\u795d\u65e5\u53d6\u5f97\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f7f\u7528\u4f8b<\/h3>\n
\u4e0a\u8a18\u306e\u795d\u65e5\u53d6\u5f97\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306bYYYY, YYYYMM, YYYYMMDD\u306e\u5f62\u5f0f\u306e\u65e5\u4ed8\u3092\u5f15\u6570\u306b\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u5404\u5e74\u6708\u65e5\u306b\u5bfe\u5fdc\u3059\u308b\u795d\u65e5\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002
\n\u5f15\u6570\u3092\u4f55\u3082\u6307\u5b9a\u3057\u306a\u3051\u308c\u3070\u5f53\u65e5\u65e5\u4ed8\u3067\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 201711\r\n20171103 \u6587\u5316\u306e\u65e5\r\n20171123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n<\/pre>\n\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 20170811\r\n20170811 \u5c71\u306e\u65e5\r\n<\/pre>\n2015\u5e74\u304b\u30892020\u5e74\u307e\u3067\u306e\u795d\u65e5\u4e00\u89a7<\/h2>\n
\u4e0b\u8a18\u306fApple\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u795d\u65e5\u53d6\u5f97\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u30672015\u5e74\u304b\u30892020\u5e74\u307e\u3067\u306e\u795d\u65e5\u4e00\u89a7\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002
\n\u305f\u3060\u3057\u3001Apple\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u306f2016\u5e7411\u6708\u6642\u70b9\u30672016\u5e74\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u795d\u65e5\u300c\u5c71\u306e\u65e5\u300d\u304c\u8003\u616e\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n2015\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2015\r\n20150101 \u5143\u65e5\r\n20150112 \u6210\u4eba\u306e\u65e5\r\n20150211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20150321 \u6625\u5206\u306e\u65e5\r\n20150429 \u662d\u548c\u306e\u65e5\r\n20150503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20150504 \u307f\u3069\u308a\u306e\u65e5\r\n20150505 \u3053\u3069\u3082\u306e\u65e5\r\n20150506 \u632f\u66ff\u4f11\u65e5\r\n20150720 \u6d77\u306e\u65e5\r\n20150921 \u656c\u8001\u306e\u65e5\r\n20150923 \u79cb\u5206\u306e\u65e5\r\n20150922 \u56fd\u6c11\u306e\u4f11\u65e5\r\n20151012 \u4f53\u80b2\u306e\u65e5\r\n20151103 \u6587\u5316\u306e\u65e5\r\n20151123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20151223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2016\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2016\r\n20160101 \u5143\u65e5\r\n20160111 \u6210\u4eba\u306e\u65e5\r\n20160211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20160320 \u6625\u5206\u306e\u65e5\r\n20160321 \u632f\u66ff\u4f11\u65e5\r\n20160429 \u662d\u548c\u306e\u65e5\r\n20160503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20160504 \u307f\u3069\u308a\u306e\u65e5\r\n20160505 \u3053\u3069\u3082\u306e\u65e5\r\n20160718 \u6d77\u306e\u65e5\r\n20160919 \u656c\u8001\u306e\u65e5\r\n20160922 \u79cb\u5206\u306e\u65e5\r\n20161010 \u4f53\u80b2\u306e\u65e5\r\n20161103 \u6587\u5316\u306e\u65e5\r\n20161123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20161223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2017\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2017\r\n20170101 \u5143\u65e5\r\n20170102 \u632f\u66ff\u4f11\u65e5\r\n20170109 \u6210\u4eba\u306e\u65e5\r\n20170211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20170320 \u6625\u5206\u306e\u65e5\r\n20170429 \u662d\u548c\u306e\u65e5\r\n20170503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20170504 \u307f\u3069\u308a\u306e\u65e5\r\n20170505 \u3053\u3069\u3082\u306e\u65e5\r\n20170717 \u6d77\u306e\u65e5\r\n20170918 \u656c\u8001\u306e\u65e5\r\n20170923 \u79cb\u5206\u306e\u65e5\r\n20171009 \u4f53\u80b2\u306e\u65e5\r\n20171103 \u6587\u5316\u306e\u65e5\r\n20171123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20171223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2018\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2018\r\n20180101 \u5143\u65e5\r\n20180108 \u6210\u4eba\u306e\u65e5\r\n20180211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20180212 \u632f\u66ff\u4f11\u65e5\r\n20180321 \u6625\u5206\u306e\u65e5\r\n20180429 \u662d\u548c\u306e\u65e5\r\n20180430 \u632f\u66ff\u4f11\u65e5\r\n20180503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20180504 \u307f\u3069\u308a\u306e\u65e5\r\n20180505 \u3053\u3069\u3082\u306e\u65e5\r\n20180716 \u6d77\u306e\u65e5\r\n20180917 \u656c\u8001\u306e\u65e5\r\n20180923 \u79cb\u5206\u306e\u65e5\r\n20180924 \u632f\u66ff\u4f11\u65e5\r\n20181008 \u4f53\u80b2\u306e\u65e5\r\n20181103 \u6587\u5316\u306e\u65e5\r\n20181123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20181223 \u5929\u7687\u8a95\u751f\u65e5\r\n20181224 \u632f\u66ff\u4f11\u65e5\r\n<\/pre>\n2019\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2019\r\n20190101 \u5143\u65e5\r\n20190114 \u6210\u4eba\u306e\u65e5\r\n20190211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20190321 \u6625\u5206\u306e\u65e5\r\n20190429 \u662d\u548c\u306e\u65e5\r\n20190503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20190504 \u307f\u3069\u308a\u306e\u65e5\r\n20190505 \u3053\u3069\u3082\u306e\u65e5\r\n20190506 \u632f\u66ff\u4f11\u65e5\r\n20190715 \u6d77\u306e\u65e5\r\n20190916 \u656c\u8001\u306e\u65e5\r\n20190923 \u79cb\u5206\u306e\u65e5\r\n20191014 \u4f53\u80b2\u306e\u65e5\r\n20191103 \u6587\u5316\u306e\u65e5\r\n20191104 \u632f\u66ff\u4f11\u65e5\r\n20191123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20191223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2020\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2020\r\n20200101 \u5143\u65e5\r\n20200113 \u6210\u4eba\u306e\u65e5\r\n20200211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20200320 \u6625\u5206\u306e\u65e5\r\n20200429 \u662d\u548c\u306e\u65e5\r\n20200503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20200504 \u307f\u3069\u308a\u306e\u65e5\r\n20200505 \u3053\u3069\u3082\u306e\u65e5\r\n20200506 \u632f\u66ff\u4f11\u65e5\r\n20200720 \u6d77\u306e\u65e5\r\n20200921 \u656c\u8001\u306e\u65e5\r\n20200922 \u79cb\u5206\u306e\u65e5\r\n20201012 \u4f53\u80b2\u306e\u65e5\r\n20201103 \u6587\u5316\u306e\u65e5\r\n20201123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20201223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n\u300c\u5c71\u306e\u65e5\u300d\u3092\u8ffd\u52a0\u3057\u305f2016\u5e74\u304b\u30892017\u5e74\u307e\u3067\u306e\u795d\u65e5\u4e00\u89a7<\/h2>\n
\u4e0a\u8a18\u3067Apple\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30d5\u30a1\u30a4\u30eb\u304b\u30892015\u5e74\u304b\u30892020\u5e74\u307e\u3067\u306e\u795d\u65e5\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u3066\u898b\u307e\u3057\u305f\u304c\u30012016\u5e74\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u300c\u5c71\u306e\u65e5\u300d\u306f\u8003\u616e\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002
\n\u4e00\u65b9\u3067Google\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30d5\u30a1\u30a4\u30eb\u306f2016\u5e74\u304b\u3089\u8ffd\u52a0\u3055\u308c\u305f\u300c\u5c71\u306e\u65e5\u300d\u304c\u8003\u616e\u3055\u308c\u305f\u6700\u65b0\u306e\u30c7\u30fc\u30bf\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3059\u3002
\n\u305f\u3060\u3057\u3001Google\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30d5\u30a1\u30a4\u30eb\u306f\u968f\u6642\u66f4\u65b0\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u53d6\u5f97\u3067\u304d\u308b\u30c7\u30fc\u30bf\u306f\u73fe\u5728\u306e\u5e74\u306e\u524d\u5f8c1\u5e74\u3060\u3051\u306e\u3088\u3046\u3067\u3059(\u4f8b\uff1a\u73fe\u57282016\u5e74\u306a\u3089\u30702015\u5e74\uff5e2017\u5e74\u304c\u53d6\u5f97\u53ef\u80fd)\u3002
\n\u4e0b\u8a18\u306fGoogle\u304b\u3089\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308bICS\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u795d\u65e5\u53d6\u5f97\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u30012015\u5e74\u304b\u30892017\u5e74\u307e\u3067\u306e\u795d\u65e5\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u305f\u7d50\u679c\u3067\u3059\u3002<\/p>\n2015\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2015\r\n20150101 \u5143\u65e5\r\n20150112 \u6210\u4eba\u306e\u65e5\r\n20150211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20150321 \u6625\u5206\u306e\u65e5\r\n20150429 \u662d\u548c\u306e\u65e5\r\n20150503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20150504 \u307f\u3069\u308a\u306e\u65e5\r\n20150505 \u3053\u3069\u3082\u306e\u65e5\r\n20150506 \u632f\u66ff\u4f11\u65e5\r\n20150720 \u6d77\u306e\u65e5\r\n20150921 \u656c\u8001\u306e\u65e5\r\n20150922 \u56fd\u6c11\u306e\u4f11\u65e5\r\n20150923 \u79cb\u5206\u306e\u65e5\r\n20151012 \u4f53\u80b2\u306e\u65e5\r\n20151103 \u6587\u5316\u306e\u65e5\r\n20151123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20151223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2016\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2016\r\n20160101 \u5143\u65e5\r\n20160111 \u6210\u4eba\u306e\u65e5\r\n20160211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20160320 \u6625\u5206\u306e\u65e5\r\n20160321 \u632f\u66ff\u4f11\u65e5\r\n20160429 \u662d\u548c\u306e\u65e5\r\n20160503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20160504 \u307f\u3069\u308a\u306e\u65e5\r\n20160505 \u3053\u3069\u3082\u306e\u65e5\r\n20160718 \u6d77\u306e\u65e5\r\n20160811 \u5c71\u306e\u65e5\r\n20160919 \u656c\u8001\u306e\u65e5\r\n20160922 \u79cb\u5206\u306e\u65e5\r\n20161010 \u4f53\u80b2\u306e\u65e5\r\n20161103 \u6587\u5316\u306e\u65e5\r\n20161123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20161223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n2017\u5e74\u306e\u795d\u65e5\u4e00\u89a7<\/h3>\n
\r\n[magtranetwork@localhost ~]$ .\/get_holidays.sh 2017\r\n20170101 \u5143\u65e5\r\n20170102 \u632f\u66ff\u4f11\u65e5\r\n20170109 \u6210\u4eba\u306e\u65e5\r\n20170211 \u5efa\u56fd\u8a18\u5ff5\u306e\u65e5\r\n20170320 \u6625\u5206\u306e\u65e5\r\n20170429 \u662d\u548c\u306e\u65e5\r\n20170503 \u61b2\u6cd5\u8a18\u5ff5\u65e5\r\n20170504 \u307f\u3069\u308a\u306e\u65e5\r\n20170505 \u3053\u3069\u3082\u306e\u65e5\r\n20170717 \u6d77\u306e\u65e5\r\n20170811 \u5c71\u306e\u65e5\r\n20170918 \u656c\u8001\u306e\u65e5\r\n20170923 \u79cb\u5206\u306e\u65e5\r\n20171009 \u4f53\u80b2\u306e\u65e5\r\n20171103 \u6587\u5316\u306e\u65e5\r\n20171123 \u52e4\u52b4\u611f\u8b1d\u306e\u65e5\r\n20171223 \u5929\u7687\u8a95\u751f\u65e5\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"\u904b\u7528\u7cfb\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u969b\u306b\u6642\u3005\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u306e\u304c\u795d\u65e5\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3059\u3002 \u30cb\u30fc\u30ba\u3068\u3057\u3066\u306f\u795d\u65e5\u306e\u6642\u306e\u307f\u51e6\u7406\u3092\u505c\u6b62\u3057\u305f\u3044\u3001\u571f\u65e5\u795d\u65e5\u306e\u6642\u306b\u51e6\u7406\u3092\u505c\u6b62\u3057\u305f\u3044\u3068\u3044\u3046\u3082\u306e\u3067\u3059\u3002 AWS\u95a2\u4fc2\u3067\u306fAWS Lambda\u3092\u30b9\u30b1 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,22,31,79,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/1809"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=1809"}],"version-history":[{"count":5,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/1809\/revisions"}],"predecessor-version":[{"id":4907,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/1809\/revisions\/4907"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=1809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=1809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=1809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}