From 72b4f22ff97b1890344f2af870ad3d1c89a3f0b5 Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 17 Oct 2018 01:29:50 +0800 Subject: [PATCH] coreutils commands: move pages to common/ folder (#2442) --- pages/{linux => common}/b2sum.md | 0 pages/{linux => common}/chroot.md | 0 pages/{linux => common}/date.md | 0 pages/{linux => common}/dd.md | 0 pages/{linux => common}/dircolors.md | 0 pages/{linux => common}/dirname.md | 0 pages/{linux => common}/du.md | 0 pages/{linux => common}/expand.md | 0 pages/{linux => common}/expr.md | 0 pages/{linux => common}/factor.md | 0 pages/{linux => common}/head.md | 0 pages/{linux => common}/hostid.md | 0 pages/{linux => common}/link.md | 0 pages/{linux => common}/logname.md | 0 pages/{linux => common}/md5sum.md | 0 pages/{linux => common}/nl.md | 0 pages/{linux => common}/nproc.md | 0 pages/{linux => common}/numfmt.md | 0 pages/{linux => common}/pinky.md | 0 pages/{linux => common}/printenv.md | 0 pages/{linux => common}/realpath.md | 0 pages/{linux => common}/sha1sum.md | 0 pages/{linux => common}/sha224sum.md | 0 pages/{linux => common}/sha256sum.md | 0 pages/{linux => common}/sha384sum.md | 0 pages/{linux => common}/sha512sum.md | 0 pages/{linux => common}/shuf.md | 0 pages/common/sort.md | 4 ++++ pages/{linux => common}/stat.md | 0 pages/{linux => common}/stty.md | 0 pages/{linux => common}/timeout.md | 0 pages/{linux => common}/truncate.md | 0 pages/{linux => common}/uname.md | 0 pages/{linux => common}/unexpand.md | 0 pages/{linux => common}/users.md | 0 pages/linux/sort.md | 23 ----------------------- 36 files changed, 4 insertions(+), 23 deletions(-) rename pages/{linux => common}/b2sum.md (100%) rename pages/{linux => common}/chroot.md (100%) rename pages/{linux => common}/date.md (100%) rename pages/{linux => common}/dd.md (100%) rename pages/{linux => common}/dircolors.md (100%) rename pages/{linux => common}/dirname.md (100%) rename pages/{linux => common}/du.md (100%) rename pages/{linux => common}/expand.md (100%) rename pages/{linux => common}/expr.md (100%) rename pages/{linux => common}/factor.md (100%) rename pages/{linux => common}/head.md (100%) rename pages/{linux => common}/hostid.md (100%) rename pages/{linux => common}/link.md (100%) rename pages/{linux => common}/logname.md (100%) rename pages/{linux => common}/md5sum.md (100%) rename pages/{linux => common}/nl.md (100%) rename pages/{linux => common}/nproc.md (100%) rename pages/{linux => common}/numfmt.md (100%) rename pages/{linux => common}/pinky.md (100%) rename pages/{linux => common}/printenv.md (100%) rename pages/{linux => common}/realpath.md (100%) rename pages/{linux => common}/sha1sum.md (100%) rename pages/{linux => common}/sha224sum.md (100%) rename pages/{linux => common}/sha256sum.md (100%) rename pages/{linux => common}/sha384sum.md (100%) rename pages/{linux => common}/sha512sum.md (100%) rename pages/{linux => common}/shuf.md (100%) rename pages/{linux => common}/stat.md (100%) rename pages/{linux => common}/stty.md (100%) rename pages/{linux => common}/timeout.md (100%) rename pages/{linux => common}/truncate.md (100%) rename pages/{linux => common}/uname.md (100%) rename pages/{linux => common}/unexpand.md (100%) rename pages/{linux => common}/users.md (100%) delete mode 100644 pages/linux/sort.md diff --git a/pages/linux/b2sum.md b/pages/common/b2sum.md similarity index 100% rename from pages/linux/b2sum.md rename to pages/common/b2sum.md diff --git a/pages/linux/chroot.md b/pages/common/chroot.md similarity index 100% rename from pages/linux/chroot.md rename to pages/common/chroot.md diff --git a/pages/linux/date.md b/pages/common/date.md similarity index 100% rename from pages/linux/date.md rename to pages/common/date.md diff --git a/pages/linux/dd.md b/pages/common/dd.md similarity index 100% rename from pages/linux/dd.md rename to pages/common/dd.md diff --git a/pages/linux/dircolors.md b/pages/common/dircolors.md similarity index 100% rename from pages/linux/dircolors.md rename to pages/common/dircolors.md diff --git a/pages/linux/dirname.md b/pages/common/dirname.md similarity index 100% rename from pages/linux/dirname.md rename to pages/common/dirname.md diff --git a/pages/linux/du.md b/pages/common/du.md similarity index 100% rename from pages/linux/du.md rename to pages/common/du.md diff --git a/pages/linux/expand.md b/pages/common/expand.md similarity index 100% rename from pages/linux/expand.md rename to pages/common/expand.md diff --git a/pages/linux/expr.md b/pages/common/expr.md similarity index 100% rename from pages/linux/expr.md rename to pages/common/expr.md diff --git a/pages/linux/factor.md b/pages/common/factor.md similarity index 100% rename from pages/linux/factor.md rename to pages/common/factor.md diff --git a/pages/linux/head.md b/pages/common/head.md similarity index 100% rename from pages/linux/head.md rename to pages/common/head.md diff --git a/pages/linux/hostid.md b/pages/common/hostid.md similarity index 100% rename from pages/linux/hostid.md rename to pages/common/hostid.md diff --git a/pages/linux/link.md b/pages/common/link.md similarity index 100% rename from pages/linux/link.md rename to pages/common/link.md diff --git a/pages/linux/logname.md b/pages/common/logname.md similarity index 100% rename from pages/linux/logname.md rename to pages/common/logname.md diff --git a/pages/linux/md5sum.md b/pages/common/md5sum.md similarity index 100% rename from pages/linux/md5sum.md rename to pages/common/md5sum.md diff --git a/pages/linux/nl.md b/pages/common/nl.md similarity index 100% rename from pages/linux/nl.md rename to pages/common/nl.md diff --git a/pages/linux/nproc.md b/pages/common/nproc.md similarity index 100% rename from pages/linux/nproc.md rename to pages/common/nproc.md diff --git a/pages/linux/numfmt.md b/pages/common/numfmt.md similarity index 100% rename from pages/linux/numfmt.md rename to pages/common/numfmt.md diff --git a/pages/linux/pinky.md b/pages/common/pinky.md similarity index 100% rename from pages/linux/pinky.md rename to pages/common/pinky.md diff --git a/pages/linux/printenv.md b/pages/common/printenv.md similarity index 100% rename from pages/linux/printenv.md rename to pages/common/printenv.md diff --git a/pages/linux/realpath.md b/pages/common/realpath.md similarity index 100% rename from pages/linux/realpath.md rename to pages/common/realpath.md diff --git a/pages/linux/sha1sum.md b/pages/common/sha1sum.md similarity index 100% rename from pages/linux/sha1sum.md rename to pages/common/sha1sum.md diff --git a/pages/linux/sha224sum.md b/pages/common/sha224sum.md similarity index 100% rename from pages/linux/sha224sum.md rename to pages/common/sha224sum.md diff --git a/pages/linux/sha256sum.md b/pages/common/sha256sum.md similarity index 100% rename from pages/linux/sha256sum.md rename to pages/common/sha256sum.md diff --git a/pages/linux/sha384sum.md b/pages/common/sha384sum.md similarity index 100% rename from pages/linux/sha384sum.md rename to pages/common/sha384sum.md diff --git a/pages/linux/sha512sum.md b/pages/common/sha512sum.md similarity index 100% rename from pages/linux/sha512sum.md rename to pages/common/sha512sum.md diff --git a/pages/linux/shuf.md b/pages/common/shuf.md similarity index 100% rename from pages/linux/shuf.md rename to pages/common/shuf.md diff --git a/pages/common/sort.md b/pages/common/sort.md index c4a6d09295..0bf916d32e 100644 --- a/pages/common/sort.md +++ b/pages/common/sort.md @@ -21,3 +21,7 @@ - Sort a file preserving only unique lines: `sort -u {{filename}}` + +- Sort human-readable numbers (in this case the 5th field of `ls -lh`): + +`ls -lh | sort -h -k 5` diff --git a/pages/linux/stat.md b/pages/common/stat.md similarity index 100% rename from pages/linux/stat.md rename to pages/common/stat.md diff --git a/pages/linux/stty.md b/pages/common/stty.md similarity index 100% rename from pages/linux/stty.md rename to pages/common/stty.md diff --git a/pages/linux/timeout.md b/pages/common/timeout.md similarity index 100% rename from pages/linux/timeout.md rename to pages/common/timeout.md diff --git a/pages/linux/truncate.md b/pages/common/truncate.md similarity index 100% rename from pages/linux/truncate.md rename to pages/common/truncate.md diff --git a/pages/linux/uname.md b/pages/common/uname.md similarity index 100% rename from pages/linux/uname.md rename to pages/common/uname.md diff --git a/pages/linux/unexpand.md b/pages/common/unexpand.md similarity index 100% rename from pages/linux/unexpand.md rename to pages/common/unexpand.md diff --git a/pages/linux/users.md b/pages/common/users.md similarity index 100% rename from pages/linux/users.md rename to pages/common/users.md diff --git a/pages/linux/sort.md b/pages/linux/sort.md deleted file mode 100644 index b7986795bb..0000000000 --- a/pages/linux/sort.md +++ /dev/null @@ -1,23 +0,0 @@ -# sort - -> Sort lines of text files. - -- Sort a file in ascending order: - -`sort {{filename}}` - -- Sort a file in descending order: - -`sort -r {{filename}}` - -- Sort a file using numeric rather than alphabetic order: - -`sort -n {{filename}}` - -- Sort the passwd file by the 3rd field, numerically: - -`sort -t: -k 3n /etc/passwd` - -- Sort human-readable numbers (in this case the 5th field of `ls -lh`): - -`ls -lh | sort -h -k 5`