logoalt Hacker News

ravtoday at 10:18 AM1 replyview on HN

Today I learned that jq -Rrj is a shorter command line for doing the same as tr -d '\n'.


Replies

stousettoday at 1:07 PM

IIRC you don’t even need the -r flag since -j incorporates its behavior (minus newlines).