docs: update

This commit is contained in:
Dylan Araps 2018-06-13 13:36:55 +10:00
parent 5c6dca34ef
commit b9a2591b45
1 changed files with 13 additions and 2 deletions

View File

@ -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"
}
```