Не могли бы вы попробовать следующее.
awk '{gsub(/\r/,"");gsub(FS,ORS);gsub(/\|/,OFS)} 1' Input_file
ИЛИ
awk '{gsub(/\r/,"");gsub(/ /,ORS);gsub(/\|/,OFS)} 1' Input_file
ИЛИ
awk '{gsub(/\r/,"");gsub(/ /,"\n");gsub(/\|/,OFS)} 1' Input_file
Объяснение: Добавление подробного объяснения приведенного выше кода. Это только для пояснения.
awk ' ##Starting awk program from here.
{ ##Starting main BLOCK of program from here.
gsub(FS,ORS) ##Globally substituting spaces with new lines here.
gsub(/\|/,OFS) ##Globally substituting pipe with space for all occurrences of current line.
} ##Closing main BLOCK of this line here.
1 ##Mentioning 1 will print edited/non-edited lines here.
' Input_file ##Mentioning Input_file name here.