Closed fibo closed 7 years ago
It seems the problem is that tr '\n' ' '
also cuts off the last newline character. The challenge doesn't specify you should preserve this newline though.
Yeah, the newline at the end is significant which is the case for all of the challenges, maybe we can improve the wording.
Ah ok, thank you I missed it. The output of both commands looked almost the same and also I could not immagine the right solution.
Summary
Steps to reproduce
https://cmdchallenge.com/#/print_number_sequence
I expected that
seq 1 100 | tr '\n' ' '
would be a solution, it produces the same output as the exampleecho $(seq 1 100)