Initial checkin
This commit is contained in:
commit
2851d99e51
|
@ -0,0 +1,30 @@
|
|||
BEGIN {
|
||||
uid=""
|
||||
summary=""
|
||||
related=""
|
||||
|
||||
FS=":"
|
||||
printf("%s,%s,%s\n","uid","summary","related");
|
||||
}
|
||||
|
||||
($1 == "BEGIN"){
|
||||
uid=""
|
||||
summary=""
|
||||
related=""
|
||||
}
|
||||
|
||||
($1 == "UID"){
|
||||
uid=$2
|
||||
}
|
||||
($1 == "SUMMARY"){
|
||||
summary=$2
|
||||
}
|
||||
($1 == "RELATED-TO"){
|
||||
related=$2
|
||||
}
|
||||
($1 == "END" && uid != ""){
|
||||
printf("%s,%s,%s\n",uid,summary,related);
|
||||
uid=""
|
||||
summary=""
|
||||
related=""
|
||||
}
|
Loading…
Reference in New Issue