mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-06-09 01:02:30 +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
|
64
|
||||||
```
|
```
|
||||||
|
|
||||||
## Create an empty file
|
## Create or truncate a file
|
||||||
|
|
||||||
Alternative to `touch`.
|
Alternative to `truncate -s0`.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
:>file
|
:>file
|
||||||
|
@ -513,6 +513,17 @@ Alternative to `touch`.
|
||||||
>file
|
>file
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create or update modification time of a file
|
||||||
|
|
||||||
|
Alternative to `touch`.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
:>>file
|
||||||
|
|
||||||
|
# OR (shellcheck warns for this)
|
||||||
|
>>file
|
||||||
|
```
|
||||||
|
|
||||||
# FILE PATHS
|
# FILE PATHS
|
||||||
|
|
||||||
## Get the directory name of a file path
|
## Get the directory name of a file path
|
||||||
|
|
Loading…
Reference in a new issue