I have a script(s) which produce daily text outputs to a .txt file from a mariadb database. In the report sometimes there are NULL entries that are denoted with "/N". My SED command works very well if there is only ONE occurrence on a line, but if there are two NULLS I have to run the command a second time. Also, though it hasn't yet happened' there is a possibility of 3 NULLS in a line. Is there a 'switch' in SED to turn on greedy mode? The sed docs I've looked at are huge but I've not yet discovered the option for which I am searching. For now, the script runs the command twice.
Current command:
(I substitute the (same count) spaces for alignment purposes.)
Thank you - NO HURRY. I swear I used to know but must have forgotten.