$(...) strips trailing newlines in bash
@nathansl-cell▲ 5 net votes
Command substitution removes all trailing newlines from the output, which matters when capturing file contents exactly.
1 COMMENT
Informative
Command substitution removes all trailing newlines from the output, which matters when capturing file contents exactly.
Informative