How to replace the pipe with a new line in Linux?

by emerald.wunsch , in category: General Help , a month ago

How to replace the pipe with a new line in Linux?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by emie , a month ago

@emerald.wunsch 

You can use the tr command to replace pipe | with a new line in Linux. Here is the command you can use:

1
2
<command> | tr "|" "
"


Replace <command> with the actual command you want to execute and you can replace | and with any other characters if needed.