From ad391f572ee7272895f63d47a4231b282a50f7d0 Mon Sep 17 00:00:00 2001 From: kaa Date: Mon, 2 Sep 2024 13:00:33 -0700 Subject: Convert for computer digestion. --- m2list.rc | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 m2list.rc (limited to 'm2list.rc') diff --git a/m2list.rc b/m2list.rc new file mode 100755 index 0000000..f847b4a --- /dev/null +++ b/m2list.rc @@ -0,0 +1,12 @@ +#!/usr/local/plan9/bin/rc + +fn filter { + sed -e 's/ (.*//' -e 's/ /%20/g' -e 's|/|%2f|g' -e 's/&/%26/g' +} +while (o=`{read}) { + author = `{echo $o | sed -e 's/,.*//' | filter} + title = `{echo $o | sed -e 's/[^,]*, //' | filter} + + # inauthor:Epp+intitle:Discrete%20Mathematics + echo inauthor:$author+intitle:$title +} -- cgit v1.2.3