How to grep something which begins and end with a character
ABC-0
ABC-1
ABC-10
ABC-20
I wanto to grep -v for ABC-0 and ABC-1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not clear what you mean. If you want a character at the start and double digits at the end, you could use
If you only want a hyphen and then a single digit, use:
If you don’t care how many digits there are (one or more), but there has to be a hyphen, use:
If none of those are what you want, please give more information… the first sentence of your question doesn’t really tally with the rest.