Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (14 sloc) 781 Bytes
#!/bin/bash
FILE="$1"
DATE_START=`egrep "^DTSTART;TZID=" "${FILE}" | awk -F: '{ print $NF }' | cut -c 1-13`
DATE_START=`date --date="${DATE_START}" "+%Y/%m/%d(%a) %H:%M"`
DATE_END=`egrep "^DTEND;TZID=" "${FILE}" | awk -F':' '{ print $NF }' | cut -c 1-13`
DATE_END=`date --date="${DATE_END}" "+%Y/%m/%d(%a) %H:%M"`
ORGANIZER=`egrep "^ORGANIZER;CN=" "${FILE}" | awk -F':' '{ print $NF }'`
ATTENDEE=`egrep -A 2 '^ATTENDEE' "${FILE}" | egrep -v '^ATTENDEE' | awk -F: '{ print $NF }' | grep -F '@'`
ROOM=`egrep '^LOCATION' "${FILE}" | awk -F: '{ print $NF }'`
echo
echo "作成者: ${ORGANIZER}"
echo " 日時: ${DATE_START}${DATE_END}"
echo " 場所: ${ROOM}"
echo "出席者: ${ATTENDEE}"| nkf -w | sed -e 's/$/, /g' | tr -d '\n' | sed -e 's/@iij.ad.jp//g' | fold --space
You can’t perform that action at this time.