bash remove new line characters

cat 1.txt | tr -d '\n' | sed "s| ||g"

No comments: