aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/readit
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-21 00:31:39 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-21 00:31:39 +0530
commit2d91768d88b14568139b51da4ce0c85cbe837df5 (patch)
tree242b41862ac677a3f275a56aa808a136b5722175 /plugins/readit
parent0c0f12b5286f1e80b13446c69ebef2ee03ae31ec (diff)
downloadnnn-2d91768d88b14568139b51da4ce0c85cbe837df5.tar.gz
Fix some cat abuses in code, plugins
Diffstat (limited to 'plugins/readit')
-rwxr-xr-xplugins/readit4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/readit b/plugins/readit
index b997235..e0058db 100755
--- a/plugins/readit
+++ b/plugins/readit
@@ -13,11 +13,11 @@ if ! [ -z "$1" ]; then
# Convert using pdftotext
pdftotext -nopgbrk -layout "$1" - | sed 's/\xe2\x80\x8b//g' > "$tmpf".txt
- pico2wave -w "$tmpf".wav -l en-GB "$(cat "$tmpf".txt | tr '\n' ' ')"
+ pico2wave -w "$tmpf".wav -l en-GB "$(tr '\n' ' ' < "$tmpf".txt)"
rm "$tmpf".txt
else
- pico2wave -w "$tmpf".wav -l en-GB "$(cat "$1" | tr '\n' ' ')"
+ pico2wave -w "$tmpf".wav -l en-GB "$(tr '\n' ' ' < "$1")"
fi
# to jump around and note the time