Commit: f352d55849f56ede1316fa89bf2f5af1735446c7 Parent: 85fef67df4d648e406c726c0f0fd78522117cf95 Author: Randy Palamar Date: Tue, 17 Aug 2021 14:55:11 -0600 simply fetchcard Diffstat:
M | fetchcard | | | 9 | ++------- |
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/fetchcard b/fetchcard @@ -1,10 +1,5 @@ -#!/bin/sh +#!/bin/sed -f # takes the output of oboeru finds a card's path -read input - -deck=$(echo "$input" | cut -f 1 | cut -d '.' -f 1) -id=$(echo "$input" | cut -f 2) - -printf "%s\n" "$deck/$id" +s:\([^.]*\)\.[^\t]*\t\(.*\):\1/\2: