satelliteuser083 Posted January 12, 2008 Report Share Posted January 12, 2008 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 Quote Link to comment Share on other sites More sharing options...
theYinYeti Posted January 13, 2008 Report Share Posted January 13, 2008 You shouldn't need the backslash. Writing [0-9-] or [-0-9] should work, IIRC. Yves. Quote Link to comment Share on other sites More sharing options...
satelliteuser083 Posted January 14, 2008 Author Report Share Posted January 14, 2008 Sadly, it didn't. However, with a space separator it did: [0-9 \-]. Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.