Hello, Im sorry to bother you with this, but I´m new to this and need help to get it working properly.
I need to get only the lines that don´t start with number and have two digit number in them.
I have this command:
cat /etc/group | egrep -v "^[0-9]" | egrep "[0-9]{2}"
And the problem is that it´s not showing only lines with two digit number. Good sign is that it´s showing lines with more than two digit. I tried also {2,2} and it´s doing the same think (showing lines with 2+ digit number)
thanks for your help
I need to get only the lines that don´t start with number and have two digit number in them.
I have this command:
cat /etc/group | egrep -v "^[0-9]" | egrep "[0-9]{2}"
And the problem is that it´s not showing only lines with two digit number. Good sign is that it´s showing lines with more than two digit. I tried also {2,2} and it´s doing the same think (showing lines with 2+ digit number)
thanks for your help