in reply to how to make sed case INsensitive
But it's much easier to use the case insensitive regex switch in perl :-)# You may also want additional substitutions # to backwhack sed metacharacters, e.g. # $search =~ s/\./\\./g; $search =~ s/([[:alpha:]])/"[".lc($1).uc($1)."]"/ge; system "sed -e s/$search/$replace/g $write1 > $write2";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: how to make sed case INsensitive
by Anonymous Monk on Jun 06, 2003 at 21:12 UTC | |
by Aristotle (Chancellor) on Jun 07, 2003 at 00:14 UTC |