Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Facepalm! Once you look at it the right way, it is so obvious. Commented Jul 23 at 9:36
  • Notice that Stephen's command also introduces printf instead of echo. In this case I guess it's just prevent the newline that echo outputs at the end and is equivalent to echo -n. (I.e echo -n 'A B C D E F ' | tac -s ' '; echo would also have worked) Commented Jul 23 at 11:30
  • 4
    @Henriksupportsthecommunity your guess is correct — as mentioned just above the command, it’s to “ensure the initial output contains a space instead of a newline” ;-). See Why is printf better than echo? for why I use printf instead of echo -n. Commented Jul 23 at 11:48