From d55ad023d42a7dae2eac4484547a15ee2e115208 Mon Sep 17 00:00:00 2001 From: Gregory Chamberlain Date: Sun, 9 Aug 2020 13:30:02 +0100 Subject: [PATCH] Differentiate touch and truncate --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1dd26d3..7c3b83f 100644 --- a/README.md +++ b/README.md @@ -502,9 +502,9 @@ $ count ~/Pictures/*.jpg 64 ``` -## Create an empty file +## Create or truncate a file -Alternative to `touch`. +Alternative to `truncate -s0`. ```shell :>file @@ -513,6 +513,17 @@ Alternative to `touch`. >file ``` +## Create or update modification time of a file + +Alternative to `touch`. + +```shell +:>>file + +# OR (shellcheck warns for this) +>>file +``` + # FILE PATHS ## Get the directory name of a file path