|
From: | Jim Meyering |
Subject: | bug#12115: Please add tip about using tac to reverse a file byte-by-byte |
Date: | Thu, 02 Aug 2012 10:42:00 +0200 |
Andreas Schwab wrote: > Jim Meyering <address@hidden> writes: > >> (note that below there's the added advantage of not having to >> double-quote to include $nl and hence not having to double-backslash) > > You can have that with the variable as well. You're right. We could write it like this: printf '\na\nb'|tac -rs '.\|'$nl or even drop the quotes altogether: printf '\na\nb'|tac -rs .\\\|$nl Golf is fun, but those seem less well suited as documentation examples.
[Prev in Thread] | Current Thread | [Next in Thread] |