I have string with "|" delimited fields:
name|phone|email|surname|house|street|
from code side, at the end of this string is "\n" How can I reorder this string using awk saving delimiter?
awk '{print $1,$4,$3,$2....}'
doesn't work it just deletes column.