Created
April 7, 2025 19:09
-
-
Save rustyvz/3fea8ba3395170b9d8adde63f0b060a4 to your computer and use it in GitHub Desktop.
Replaces all newline characters in input.txt with spaces, outputting a single-line result.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sed ':a;N;$!ba;s/\n/ /g' input.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment