dickiebird
Programmer
Guys
I'm missing something in my sed education
I want to put some | (pipe) in my file, before and after
some numbers.
So I tried sed 's/ [0-9]/| [0-9]/g' >newfile
This finds any numbers preceded by a space just fine, but
then puts '[0-9]' there too.
Any thoughts to put me on the right track ?
;-) Dickie Bird
db@dickiebird.freeserve.co.uk
I'm missing something in my sed education
I want to put some | (pipe) in my file, before and after
some numbers.
So I tried sed 's/ [0-9]/| [0-9]/g' >newfile
This finds any numbers preceded by a space just fine, but
then puts '[0-9]' there too.
Any thoughts to put me on the right track ?
;-) Dickie Bird
db@dickiebird.freeserve.co.uk