feat: Basic attachment support
This commit is contained in:
10
src/awk/has.awk
Normal file
10
src/awk/has.awk
Normal file
@@ -0,0 +1,10 @@
|
||||
## src/awk/has.awk
|
||||
## Decide if VEVENT file has a specific field.
|
||||
##
|
||||
## @assign field: Field name
|
||||
|
||||
# AWK program
|
||||
BEGIN { FS = "[:;]" }
|
||||
/^BEGIN:VEVENT$/ { ins = 1 }
|
||||
/^END:VEVENT$/ { exit 1 }
|
||||
ins && $1 == field { exit 0 }
|
Reference in New Issue
Block a user