From: paul Date: Tue, 8 Apr 2014 03:02:03 +0000 (+0000) Subject: Quick hack: list attendees year of birth in course summary X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=002b2558e02b14bf2dbcd3ba5ec039d22bac2d69;p=lobster Quick hack: list attendees year of birth in course summary svn path=/trunk/; revision=44 --- diff --git a/pages/courses.sh b/pages/courses.sh index f604515..6cb32e7 100755 --- a/pages/courses.sh +++ b/pages/courses.sh @@ -42,8 +42,7 @@ list_attendance() { n_pre="$( sed -rn 's:^N(;.+)*\:([^;]*;){3} *([^;]*).*$:\3:p' "$_DATA/vcard/$each")" n_post="$( sed -rn 's:^N(;.+)*\:([^;]*;){4} *([^;]*).*$:\3:p' "$_DATA/vcard/$each")" byear="$( sed -rn 's:^BDAY(;.+)*\:([0-9]{4})(-[0-9][0-9]){2}.*$:\2:p' "$_DATA/vcard/$each")" - #aname="${n_pre} ${n_first} ${n_middle} ${n_last} ${n_post} (*${byear})" - aname="${n_pre} ${n_first} ${n_middle} ${n_last} ${n_post}" + aname="${n_pre} ${n_first} ${n_middle} ${n_last} ${n_post} (*${byear})" echo "$each $aname" |tr -d '\r' done }