|
check
this question from korn faq at
Q24. How do I do global substitutions on the
contents of shell variables?
A24. Use // instead of / for global substitution, ${var//aa/bb} will expand to the value of with each "aa" replace by "bb". so i
tried
$
var=tester
$ echo $var tester $ echo ${var//e/o} bad substitution $ anyone
out there :)
-Mandar
|
- Unix question Big Planet
- Re: Unix question Charlie Mengler
- Re: Unix question Mandar Ghosalkar
- Re: Unix question Big Planet
- RE: Unix question Chuck Hamilton
- RE: Unix question Brian MacLean
- RE: Unix question Brian MacLean
- Unix question Roland . Skoldblom
- Re: Unix question Patrik Malinen
- RE: Unix question John Dunn
- Re: Unix question Jay Hostetter
- Re: Unix question nlzanen1
- RE: Unix question Robertson Lee - lerobe
