Is there a way to remove the automatically added '\n' when using string redirection:
$ <<< 'abc' wc -c
4
Of course I'm looking for short solutions (things like <<< 'abc' tr -d '\n' | wc -c
aren't interesting).
Is there a way to remove the automatically added '\n' when using string redirection:
$ <<< 'abc' wc -c
4
Of course I'm looking for short solutions (things like <<< 'abc' tr -d '\n' | wc -c
aren't interesting).