From 173ccac1bc16657424fdd50f53b18ea35835e15d Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 23 Aug 2000 13:34:52 +0000 Subject: [PATCH] Now really truncate to 0 bytes (instead of 1). --- truncate/truncate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truncate/truncate.sh b/truncate/truncate.sh index c89e153..285fc93 100644 --- a/truncate/truncate.sh +++ b/truncate/truncate.sh @@ -2,6 +2,6 @@ @@@find_printf@@@ "$@" -type f -printf '%TY%Tm%Td%TH%TM.%TS %p\n' | while read timestamp file do - echo > "$file" + echo -n "" > "$file" touch -t "$timestamp" "$file" done