Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. $ string='hello world'; string2="${string// /_}"; echo "${string2^^}"
  2. HELLO_WORLD
  3.  
  4. $ echo 'hello world' | $"{-// /_}" | "${ -^^}"
  5. HELLO_WORLD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement