mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-05-17 21:06:36 +02:00
Differentiate touch and truncate
This commit is contained in:
parent
d744927f52
commit
d55ad023d4
15
README.md
15
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
|
||||
|
|
Loading…
Reference in a new issue