about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xvienna4
1 files changed, 1 insertions, 3 deletions
diff --git a/vienna b/vienna index 59201df..f40f027 100755 --- a/vienna +++ b/vienna
@@ -296,9 +296,7 @@ meta() { # meta FIELD [FILE]
296 # 296 #
297 # Metadata should exist as colon-separated data in an HTML comment at 297 # Metadata should exist as colon-separated data in an HTML comment at
298 # the beginning of an input file. 298 # the beginning of an input file.
299 field="$1" 299 sed -n "s/^[ \t]*$1:[ \t]*//p" <"${2:-$META}"
300 file="${2:-$META}"
301 sed -n "s/^[ \t]*$field:[ \t]*//p" <"$file"
302} 300}
303 301
304## Customizable bits 302## Customizable bits