I have the following entry in a tab delimited file test1.txtkey1 10|15 20 30 11|xx 21 31key2 527|240 269 0 0 0 2462 546 281 0 0Is there any way I can transform this file into the below format? I would like bring pipe delimited values into next line. There can be an arbitrary amount of pipes and values which are separated by them must have the same amount of characters.key1 10 20 30 11 21 31key1 15       xx    key2 527 269 0 0 0 2462 546 281 0 0key2 240  
How to insert the entry into the newline?
bash;shell;shell script;scripting