Added shorter file creation syntax. Closes #22

This commit is contained in:
Dylan Araps
2018-06-21 11:30:38 +10:00
parent 09a315df8d
commit b5a2ad5e0a
2 changed files with 8 additions and 6 deletions

View File

@@ -916,11 +916,12 @@ Alternative to `touch`.
```shell ```shell
# Shortest. # Shortest.
:> file >file
# Longer alternatives: # Longer alternatives:
echo -n > file :>file
printf '' > file echo -n >file
printf '' >file
``` ```
## Extract lines between two markers ## Extract lines between two markers

View File

@@ -151,11 +151,12 @@ Alternative to `touch`.
```shell ```shell
# Shortest. # Shortest.
:> file >file
# Longer alternatives: # Longer alternatives:
echo -n > file :>file
printf '' > file echo -n >file
printf '' >file
``` ```
## Extract lines between two markers ## Extract lines between two markers