Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ string='hello world'; string2="${string// /_}"; echo "${string2^^}"
- HELLO_WORLD
- $ echo 'hello world' | $"{-// /_}" | "${ -^^}"
- HELLO_WORLD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement