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