Andreas Schwab wrote:
> Jim Meyering <j...@meyering.net> 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.



Reply via email to