lckdo, mispipe, pee, vidir, vipe, zrun: add pages; flock: edit page (#12113)

* lckdo, mispipe, pee, vidir, vipe, zrun: add pages

* Apply suggestions from code review

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>

* fix errors

* flock: move page

---------

Co-authored-by: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com>
pull/23/head
Juri Dispan 2024-01-24 09:20:02 +01:00 committed by GitHub
parent a5bc5828f3
commit 5561eb8f56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 81 additions and 0 deletions

8
pages/common/lckdo.md Normal file
View File

@ -0,0 +1,8 @@
# lckdo
> This command is deprecated and superseded by `flock`.
> More information: <https://joeyh.name/code/moreutils/>.
- View documentation for the recommended replacement:
`tldr flock`

8
pages/common/mispipe.md Normal file
View File

@ -0,0 +1,8 @@
# mispipe
> Pipe two commands and return the exit status of the first command.
> More information: <https://joeyh.name/code/moreutils/>.
- Pipe two commands and return the exit status of the first command:
`mispipe {{command1}} {{command2}}`

17
pages/common/pee.md Normal file
View File

@ -0,0 +1,17 @@
# pee
> Tee `stdin` to pipes.
> See also: `tee`.
> More information: <https://joeyh.name/code/moreutils/>.
- Run each command, providing each one with a distinct copy of `stdin`:
`pee {{command1 command2 ...}}`
- Write a copy of `stdin` to `stdout` (like `tee`):
`pee cat {{command1 command2 ...}}`
- Immediately terminate upon SIGPIPEs and write errors:
`pee --no-ignore-sigpipe --no-ignore-write-errors {{command1 command2 ...}}`

24
pages/common/vidir.md Normal file
View File

@ -0,0 +1,24 @@
# vidir
> Edit directories in a text editor.
> More information: <https://joeyh.name/code/moreutils/>.
- Edit the contents of the specified directories:
`vidir {{path/to/directory1 path/to/directory2 ...}}`
- Display each action taken by the program:
`vidir --verbose {{path/to/directory1 path/to/directory2 ...}}`
- Edit the contents of current directory:
`vidir`
- Use the specified text editor:
`EDITOR={{vim}} vidir {{path/to/directory1 path/to/directory2 ...}}`
- Read a list of files to edit from `stdin`:
`{{command}} | vidir -`

16
pages/common/vipe.md Normal file
View File

@ -0,0 +1,16 @@
# vipe
> Run a text editor in the middle of a UNIX pipeline.
> More information: <https://joeyh.name/code/moreutils/>.
- Edit the output of `command1` before piping it into `command2`:
`{{command1}} | vipe | {{command2}}`
- Buffer the output of `command1` in a temporary file with the specified file extension in order to aid syntax highlighting:
`{{command1}} | vipe --suffix {{json}} | {{command2}}`
- Use the specified text editor:
`{{command1}} | EDITOR={{vim}} vipe | {{command2}}`

8
pages/common/zrun.md Normal file
View File

@ -0,0 +1,8 @@
# zrun
> Transparently uncompress argument files to a command.
> More information: <https://joeyh.name/code/moreutils/>.
- Run the specified command with uncompressed versions of the compressed argument files:
`zrun {{cat path/to/file1.gz path/to/file2.bz2 ...}}`