docs: update
This commit is contained in:
parent
5c6dca34ef
commit
b9a2591b45
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 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)
|
||||
* [Create an empty file.](#create-an-empty-file)
|
||||
* [Strings](#strings)
|
||||
* [Trim white-space from string.](#trim-white-space-from-string)
|
||||
* [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
|
||||
|
||||
|
@ -304,5 +317,3 @@ date() {
|
|||
printf "%($1)T\\n"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue