diff options
author | Nick White <git@njw.name> | 2019-04-23 17:41:06 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-04-23 17:41:06 +0100 |
commit | 17f3e2287977895a0c127384472678be78cec022 (patch) | |
tree | c647a51a76973440d0b4330587a29d94be56b880 /nonewlines.sh | |
parent | 1a9fe17424c845e30544f35e6cc6a0ab8af22b64 (diff) |
Save dehyphenated text to a different file, rather than overwriting the original
Diffstat (limited to 'nonewlines.sh')
-rw-r--r-- | nonewlines.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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" |