Page 1 of 1

Reformatting a list? (Solved)

Posted: Tue Oct 27, 2020 10:45 am
by taersh
Hi.

I have a list of files stored/echoed into a text file, e.g.:
Harp_a_1.wav Harp_a_4.wav Harp_a_7.wav
How to reformat it to have the text file's content look like that:
Harp_a_1.wav
Harp_a_4.wav
Harp_a_7.wav
???

Re: Reformatting a list?

Posted: Tue Oct 27, 2020 10:58 am
by MochiMoppel
sed -i 's/ /\n/g' /path/to/textfile

Re: Reformatting a list? (Solved)

Posted: Tue Oct 27, 2020 12:00 pm
by taersh
Works good. Thanks.
You're an expert for real! :thumbup: