diff --git a/pages/linux/flock.md b/pages/common/flock.md similarity index 100% rename from pages/linux/flock.md rename to pages/common/flock.md diff --git a/pages/common/lckdo.md b/pages/common/lckdo.md new file mode 100644 index 0000000000..9a4c251aff --- /dev/null +++ b/pages/common/lckdo.md @@ -0,0 +1,8 @@ +# lckdo + +> This command is deprecated and superseded by `flock`. +> More information: . + +- View documentation for the recommended replacement: + +`tldr flock` diff --git a/pages/common/mispipe.md b/pages/common/mispipe.md new file mode 100644 index 0000000000..1d29e51b8b --- /dev/null +++ b/pages/common/mispipe.md @@ -0,0 +1,8 @@ +# mispipe + +> Pipe two commands and return the exit status of the first command. +> More information: . + +- Pipe two commands and return the exit status of the first command: + +`mispipe {{command1}} {{command2}}` diff --git a/pages/common/pee.md b/pages/common/pee.md new file mode 100644 index 0000000000..ec01d3410b --- /dev/null +++ b/pages/common/pee.md @@ -0,0 +1,17 @@ +# pee + +> Tee `stdin` to pipes. +> See also: `tee`. +> More information: . + +- 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 ...}}` diff --git a/pages/common/vidir.md b/pages/common/vidir.md new file mode 100644 index 0000000000..e3f13cd18e --- /dev/null +++ b/pages/common/vidir.md @@ -0,0 +1,24 @@ +# vidir + +> Edit directories in a text editor. +> More information: . + +- 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 -` diff --git a/pages/common/vipe.md b/pages/common/vipe.md new file mode 100644 index 0000000000..86e5c50133 --- /dev/null +++ b/pages/common/vipe.md @@ -0,0 +1,16 @@ +# vipe + +> Run a text editor in the middle of a UNIX pipeline. +> More information: . + +- 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}}` diff --git a/pages/common/zrun.md b/pages/common/zrun.md new file mode 100644 index 0000000000..569afb5c2c --- /dev/null +++ b/pages/common/zrun.md @@ -0,0 +1,8 @@ +# zrun + +> Transparently uncompress argument files to a command. +> More information: . + +- Run the specified command with uncompressed versions of the compressed argument files: + +`zrun {{cat path/to/file1.gz path/to/file2.bz2 ...}}`