From 17f3e2287977895a0c127384472678be78cec022 Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 23 Apr 2019 17:41:06 +0100 Subject: Save dehyphenated text to a different file, rather than overwriting the original --- nonewlines.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nonewlines.sh') diff --git a/nonewlines.sh b/nonewlines.sh index e765d64..499b791 100644 --- a/nonewlines.sh +++ b/nonewlines.sh @@ -7,6 +7,6 @@ line breaks, saving the result to dirname.txt" test $# -ne 1 && echo "$usage" && exit 1 d=`dirname "$1"` -cat "$1"/*txt | tr -d '\n' > "${d}.txt" +cat "$1"/*.dehyphenated.txt | tr -d '\n' > "${d}.txt" echo "Saved all text, with no newlines, to ${d}.txt" -- cgit v1.2.1-24-ge1ad