where the resultant names are based on the presence of the #2 names above. I.e., if a #2 name is passed (usually will be null,) use that - otherwise use the #1 counterpart.
Example:
|Smith|Frederick|John|null|null|Johnny
result:
|Smith|Frederick|Johnny
I'm just curious if this is something that can be done conditionally in sed - admittedly more for my curiosity than anything else. I'm geared up to just crank out the modest perl to get this done - but I'm looking for something not so "business as usual."