79253246

Date: 2024-12-05 02:35:36
Score: 0.5
Natty:
Report link

This works for me:

cat file | sed -e 's/$/\n/'

Basically, use sed to add \n for each end of a line ($).

You can also do this, but the newline is adding before each line:

cat file | sed -e 's/^/\n/'

Basically, use sed to add \n for each beginning of a line (^).

Sed also accept file as input, so

sed -e 's/$/\n/' file # will do the same

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: CW Chung