Quote:
Originally Posted by
7adi
Hi @Neo,
Thank you very much. Yes, perl did the job. I will find something with sed or awk and avoiding installing gsed.
Welcome.
I think you will have some trouble with
sed on the mac. I checked the web, and this newline issue on the
macos version of
sed is very frustrating for many people . The best idea for
sed (on
macos) is to install
gsed.
However,
perl works well, as you discovered.
I'm sure one of our many very talented and world exceptional
awk experts has a great
awk idea for you. I never really enjoy using
awk, my bad, and generally process text with
PHP or
Python, only because I prefer more self-descriptive syntax for future maintenance and code changes years later (but that's just me... YMMV).