whereis, xar, yank: move to common (#6552)

beep
marchersimon 2021-09-19 02:59:20 +02:00 committed by GitHub
parent 0e7393b78f
commit e94e6af882
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 0 additions and 54 deletions

View File

@ -1,19 +0,0 @@
# whereis
> Locate the binary, source, and manual page files for a command.
- Locate binary, source and man pages for ssh:
`whereis {{ssh}}`
- Locate binary and man pages for ls:
`whereis -bm {{ls}}`
- Locate source of gcc and man pages for Git:
`whereis -s {{gcc}} -m {{git}}`
- Locate binaries for gcc in `/usr/bin/` only:
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`

View File

@ -1,16 +0,0 @@
# xar
> Manage .xar archives.
> More information: <https://manned.org/xar>.
- Create a xar archive of all files in a given directory:
`xar -cf {{archive.xar}} {{path/to/directory}}`
- Lis[t] the contents of a given xar archive:
`xar -tf {{archive.xar}}`
- Extract the contents of a given xar archive to the current directory:
`xar -xf {{archive.xar}}`

View File

@ -1,19 +0,0 @@
# yank
> Read input from stdin and display a selection interface that allows a field to be selected and copied to the clipboard.
- Yank using the default delimiters (\f, \n, \r, \s, \t):
`{{sudo dmesg}} | yank`
- Yank an entire line:
`{{sudo dmesg}} | yank -l`
- Yank using a specific delimiter:
`{{echo hello=world}} | yank -d {{=}}`
- Only yank fields matching a specific pattern:
`{{ps ux}} | yank -g "{{[0-9]+}}"`