satelliteuser083 Posted January 12, 2008 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 Link to comment Share on other sites More sharing options...
theYinYeti Posted January 13, 2008 Share Posted January 13, 2008 You shouldn't need the backslash. Writing [0-9-] or [-0-9] should work, IIRC. Yves. Link to comment Share on other sites More sharing options...
satelliteuser083 Posted January 14, 2008 Author Share Posted January 14, 2008 Sadly, it didn't. However, with a space separator it did: [0-9 \-]. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now