mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
Merge pull request #710 from notpeter/raa-fix
w: add -i example, uniq: additions, seq: add page
This commit is contained in:
commit
00357ca6ee
3 changed files with 32 additions and 1 deletions
15
pages/common/seq.md
Normal file
15
pages/common/seq.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# seq
|
||||||
|
|
||||||
|
> Output a sequence of numbers to stdout.
|
||||||
|
|
||||||
|
- Sequence from 1 to 10:
|
||||||
|
|
||||||
|
`seq 10`
|
||||||
|
|
||||||
|
- Every 3rd number from 5 to 20:
|
||||||
|
|
||||||
|
`seq 5 3 20`
|
||||||
|
|
||||||
|
- Separate the output with a space instead of a newline:
|
||||||
|
|
||||||
|
`seq -s " " 5 3 20`
|
|
@ -1,6 +1,6 @@
|
||||||
# uniq
|
# uniq
|
||||||
|
|
||||||
> Report or omit repeated lines.
|
> Output the unique lines from the given input or file.
|
||||||
|
|
||||||
- Display each line once:
|
- Display each line once:
|
||||||
|
|
||||||
|
|
16
pages/osx/w.md
Normal file
16
pages/osx/w.md
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# w
|
||||||
|
|
||||||
|
> Show who is logged on and what they are doing.
|
||||||
|
> Print user login, TTY, remote host, login time, idle time, current process.
|
||||||
|
|
||||||
|
- Show logged-in users info:
|
||||||
|
|
||||||
|
`w`
|
||||||
|
|
||||||
|
- Show logged-in users info without a header:
|
||||||
|
|
||||||
|
`w -h`
|
||||||
|
|
||||||
|
- Show info about logged-in users, sorted by their idle time:
|
||||||
|
|
||||||
|
`w -i`
|
Loading…
Add table
Reference in a new issue