I need to be able to match *any* number of 0's that are between ||
Example
|000|00|0000000|0|
I would *hopefully* want that to be when I am done
|||||
I have used
sed -e 's/|0*|/||' filename
but that only gets every other one (i.e. sed reads up to a | for a
pattern, but for the next pattern it starts with the next character.. in
my case a 0)
Any clues?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elizabeth Musi University of Pittsburgh
Graduate Student Assistant 140 William Pitt Union
Office of Student Activities (412) 648-7830