docs: update
This commit is contained in:
15
README.md
15
README.md
@@ -30,6 +30,7 @@ scripts and not full blown utilities.
|
|||||||
* [Get the first N lines of a file.](#get-the-first-n-lines-of-a-file)
|
* [Get the first N lines of a file.](#get-the-first-n-lines-of-a-file)
|
||||||
* [Get the last N lines of a file.](#get-the-last-n-lines-of-a-file)
|
* [Get the last N lines of a file.](#get-the-last-n-lines-of-a-file)
|
||||||
* [Get the number of lines in a file.](#get-the-number-of-lines-in-a-file)
|
* [Get the number of lines in a file.](#get-the-number-of-lines-in-a-file)
|
||||||
|
* [Create an empty file.](#create-an-empty-file)
|
||||||
* [Strings](#strings)
|
* [Strings](#strings)
|
||||||
* [Trim white-space from string.](#trim-white-space-from-string)
|
* [Trim white-space from string.](#trim-white-space-from-string)
|
||||||
* [Split a string on a delimiter.](#split-a-string-on-a-delimiter)
|
* [Split a string on a delimiter.](#split-a-string-on-a-delimiter)
|
||||||
@@ -114,6 +115,18 @@ lines() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Create an empty file.
|
||||||
|
|
||||||
|
Alternative to `touch`.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
:> file
|
||||||
|
|
||||||
|
# Longer alternatives:
|
||||||
|
echo -n > file
|
||||||
|
printf '' > file
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Strings
|
## Strings
|
||||||
|
|
||||||
@@ -304,5 +317,3 @@ date() {
|
|||||||
printf "%($1)T\\n"
|
printf "%($1)T\\n"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user