satelliteuser083
Jan 12 2008, 06:08 PM
I'm trying to write an sed script, which needs a "-" (dash) inside the range of characters i.e. a range of 0 to 9 [0-9] PLUS the dash. I've tried [0-9\-] but sed complains and ignores the entire line. Could anyone help me out? Thanks
theYinYeti
Jan 13 2008, 06:04 PM
You shouldn't need the backslash. Writing [0-9-] or [-0-9] should work, IIRC.
Yves.
satelliteuser083
Jan 14 2008, 03:52 PM
Sadly, it didn't. However, with a space separator it
did: [0-9 \-]. Thanks