[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 14d8b68: Port and simplify example sh script
From: |
Paul Eggert |
Subject: |
[Emacs-diffs] master 14d8b68: Port and simplify example sh script |
Date: |
Tue, 21 Mar 2017 12:19:47 -0400 (EDT) |
branch: master
commit 14d8b6858a49e97f9b69593df5a8a7886430d43f
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>
Port and simplify example sh script
* doc/misc/org.texi (noweb-ref): Simplify shell script example and
don’t use ‘tail -1’, which is not portable.
---
doc/misc/org.texi | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/doc/misc/org.texi b/doc/misc/org.texi
index 21c8758..fca5185 100644
--- a/doc/misc/org.texi
+++ b/doc/misc/org.texi
@@ -15327,14 +15327,9 @@ inheritance}).}.
|sed '1d' \
#+END_SRC
- ** sort by the percent full
+ ** output mount point of fullest disk
#+BEGIN_SRC sh
- |awk '@{print $5 " " address@hidden'|sort -n |tail -1 \
- #+END_SRC
-
- ** extract the mount point
- #+BEGIN_SRC sh
- |awk '@{print address@hidden'
+ |awk '@{if (u < +$5) @{u = +$5; m = address@hidden@} END @{print
address@hidden'
#+END_SRC
@end example
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 14d8b68: Port and simplify example sh script,
Paul Eggert <=