Skip to main content
added 57 characters in body
Source Link
Jaakko
  • 320
  • 3
  • 12

I was able to solve similar issue with col (filter reverse line feeds from input).

java -jar my-jar.jar | tee >(col -pb | tee >/tmp/my-jar.log)

EDIT: Refined answer to better match the question.

I was able to solve similar issue with col (filter reverse line feeds from input).

java -jar my-jar.jar | col -pb | tee /tmp/my-jar.log

I was able to solve similar issue with col (filter reverse line feeds from input).

java -jar my-jar.jar | tee >(col -pb >/tmp/my-jar.log)

EDIT: Refined answer to better match the question.

Source Link
Jaakko
  • 320
  • 3
  • 12

I was able to solve similar issue with col (filter reverse line feeds from input).

java -jar my-jar.jar | col -pb | tee /tmp/my-jar.log