From a4d279b7767c45c71a205f23b234b624ece5dd58 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Fri, 13 Jun 2025 07:16:15 +0300 Subject: [PATCH] touch: add string parsing example (#16840) Update touch.md --- pages/common/touch.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/touch.md b/pages/common/touch.md index 929ebe02dc..d8c7c0c7ba 100644 --- a/pages/common/touch.md +++ b/pages/common/touch.md @@ -18,3 +18,7 @@ - Set the files' timestamp to the reference file's timestamp, and do not create the file if it does not exist: `touch {{[-c|--no-create]}} {{[-r|--reference]}} {{path/to/reference_file}} {{path/to/file1 path/to/file2 ...}}` + +- Set the timestamp by parsing a string: + +`touch {{[-d|--date]}} "{{last year|5 hours|next thursday|nov 14|...}} {{path/to/file}}`