Ver Fonte

w: split out of common and add -i to osx, uniq: additions, seq: add page

Pradeep Reddy Raamana há 9 anos atrás
pai
commit
525f436cc8
3 ficheiros alterados com 32 adições e 1 exclusões
  1. 15 0
      pages/common/seq.md
  2. 1 1
      pages/common/uniq.md
  3. 16 0
      pages/osx/w.md

+ 15 - 0
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`

+ 1 - 1
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:
 

+ 16 - 0
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`