Commit 14d8b685 authored by Paul Eggert's avatar Paul Eggert

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.
parent abe731ee
......@@ -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 " " $6@}'|sort -n |tail -1 \
#+END_SRC
** extract the mount point
#+BEGIN_SRC sh
|awk '@{print $2@}'
|awk '@{if (u < +$5) @{u = +$5; m = $6@}@} END @{print m@}'
#+END_SRC
@end example
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment