Thanks to one of the helpful people in this forum I learned how to use "tr" for substitution. What I'd like to do now is add a newline to what I'm doing.
I have <filename> containing:
after using
cat <filename> | tr "|" "\n"
I get
.
.
.
What I'd like is
.
.
Being relatively new to scripting I tried
cat <filename> | tr "|" "\n\n"
which gave me the same results as the original cmd. Also tried |'ing output into sed but didn't get it to work.
Any tips on how to modify the cmd or to accomplish it another way would be appreciated.
TIA!
maurie
I have <filename> containing:
after using
cat <filename> | tr "|" "\n"
I get
.
.
.
What I'd like is
.
.
Being relatively new to scripting I tried
cat <filename> | tr "|" "\n\n"
which gave me the same results as the original cmd. Also tried |'ing output into sed but didn't get it to work.
Any tips on how to modify the cmd or to accomplish it another way would be appreciated.
TIA!
maurie