regex - How to replace any character (e.g. ":") with new line in bash variable pattern substitution? -


I would like to use variable pattern replacement in $ PATH to replace ":"

 < Code> echo $ {PATH /: / "& lt; what's here & gt;"}   

I tried:

  $ echo {PATH /: /    

P> You can use just quoted strings just like anywhere else.

  "$ {PATH //: /}"   

this:

  echo "$ {PATH / (You probably want to replace the colon everywhere, not just the first event. Therefore, the  //   

> No / .)

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -