1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-01 23:35:32 +02:00

touch: add string parsing example (#16840)

Update touch.md
This commit is contained in:
Managor 2025-06-13 07:16:15 +03:00 committed by GitHub
parent 46115d72c6
commit a4d279b776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`