summaryrefslogtreecommitdiff
path: root/org-fc-awk.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-02-03 15:16:35 +0100
committerLeon Rische <leon.rische@me.com>2020-02-03 15:16:35 +0100
commitf3cf22541e7310235e65d56dd893bbf68a31b232 (patch)
tree1d92d2bb7b6fee307ec77dad790e1d54e5c3b27b /org-fc-awk.el
parent4f5b1dddcdc06bef11762b8d2bc22cb7ae6c6483 (diff)
Remove dependency on `shuf`, use `gawk` instead of `awk`
Diffstat (limited to 'org-fc-awk.el')
-rw-r--r--org-fc-awk.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/org-fc-awk.el b/org-fc-awk.el
index a64182d..f19bf0f 100644
--- a/org-fc-awk.el
+++ b/org-fc-awk.el
@@ -41,7 +41,7 @@
. value) pairs VARIABLES. If UTILS is set to a non-nil value,
the shared util file is included, too. If INPUT is set to a
string, use that file (absolute path) as input."
- (concat "awk "
+ (concat "gawk "
;; TODO: quote strings
(mapconcat
(lambda (kv) (format "-v %s=%s" (car kv) (cdr kv)))
@@ -171,8 +171,7 @@ parsing each element with its header specification."
"awk/index_positions.awk"
:utils t
:variables (org-fc-awk--indexer-variables)))
- (org-fc-awk--command "awk/filter_due.awk")
- "shuf"))))
+ (org-fc-awk--command "awk/filter_due.awk")))))
(cl-defun org-fc-awk-stats-positions (&optional (paths org-fc-directories))
"Statistics for all positions in PATHS."