From 525f436cc88c28ddf4d139d3314dc71b94ddcb24 Mon Sep 17 00:00:00 2001 From: Pradeep Reddy Raamana Date: Tue, 29 Dec 2015 08:00:40 -0500 Subject: [PATCH] w: split out of common and add -i to osx, uniq: additions, seq: add page --- pages/common/seq.md | 15 +++++++++++++++ pages/common/uniq.md | 2 +- pages/osx/w.md | 16 ++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 pages/common/seq.md create mode 100644 pages/osx/w.md diff --git a/pages/common/seq.md b/pages/common/seq.md new file mode 100644 index 000000000..6fca21779 --- /dev/null +++ b/pages/common/seq.md @@ -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` diff --git a/pages/common/uniq.md b/pages/common/uniq.md index 7be8b8bf3..fb28858e6 100644 --- a/pages/common/uniq.md +++ b/pages/common/uniq.md @@ -1,6 +1,6 @@ # uniq -> Report or omit repeated lines. +> Output the unique lines from the given input or file. - Display each line once: diff --git a/pages/osx/w.md b/pages/osx/w.md new file mode 100644 index 000000000..1cf83af6e --- /dev/null +++ b/pages/osx/w.md @@ -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`