From 2d91768d88b14568139b51da4ce0c85cbe837df5 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Thu, 21 Nov 2019 00:31:39 +0530 Subject: Fix some cat abuses in code, plugins --- plugins/readit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/readit') 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 -- cgit v1.2.3-70-g09d2