bug-coreutils
[Top][All Lists]
Advanced

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

bug#12115: Please add tip about using tac to reverse a file byte-by-byte


From: Reuben Thomas
Subject: bug#12115: Please add tip about using tac to reverse a file byte-by-byte
Date: Wed, 1 Aug 2012 22:37:42 +0100

Patch:

>From 3c1b7d442dc6161e3c88703c9acc3f768f9ba689 Mon Sep 17 00:00:00 2001
From: Reuben Thomas <address@hidden>
Date: Wed, 1 Aug 2012 22:35:38 +0100
Subject: [PATCH] doc: Add tip on reversing a file byte-by-byte

* doc/coreutils.texi: Note how to use tac to reverse a file
byte-by-byte.
---
 doc/coreutils.texi |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index 516ec73..66b0838 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -1625,6 +1625,12 @@ Use @var{separator} as the record separator,
instead of newline.

 @end table

+To reverse a file byte by byte, use:
+
address@hidden
+tac -r -s '.\| ' @var{file}
address@hidden example
+
 @exitstatus


-- 
1.7.9.5



-- 
http://rrt.sc3d.org





reply via email to

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