diff options
author | kaa <kaa@disroot.org> | 2024-09-02 13:00:33 -0700 |
---|---|---|
committer | kaa <kaa@disroot.org> | 2024-09-02 13:00:33 -0700 |
commit | ad391f572ee7272895f63d47a4231b282a50f7d0 (patch) | |
tree | 9ee71ef71196a82be4e477e929634c0f18697b87 /m2list.rc | |
parent | 315e747a4c067752dfc69d3d2d6dc23f0c30d8c0 (diff) |
Convert for computer digestion.
Diffstat (limited to 'm2list.rc')
-rwxr-xr-x | m2list.rc | 12 |
1 files changed, 12 insertions, 0 deletions
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 +} |