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

Java - Error: no suitable method found for add(int, java.lang.String) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -