SyntaxFix
Write A Post
Hire A Developer
Questions
You can do it using only the shell, no need for tr or sed
tr
sed
$ str="This is just a test" $ echo ${str// /_} This_is_just_a_test