bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] doc: use portable 'tail' call in texinfo example


From: Bernhard Voelker
Subject: [PATCH] doc: use portable 'tail' call in texinfo example
Date: Fri, 2 Nov 2018 15:52:40 +0100

* doc/find.texi (node Updating A Timestamp File): Use more portable
'tail -n1' instead of the deprecated form 'tail -1'.
---
 doc/find.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/find.texi b/doc/find.texi
index 634dfb28..1e15d939 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -4807,7 +4807,7 @@ It is possible to use the @samp{-printf} action to 
abandon the use of
 @smallexample
 newest=$(find subdir -newer timestamp -printf "%A@:%p\n" |
            sort -n |
-           tail -1 |
+           tail -n1 |
            cut -d: -f2- )
 touch -r "address@hidden:address@hidden" timestamp
 @end smallexample
-- 
2.19.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]