matching not working as expected...
Hi,
I have the file /tmp/qqq that contains: Code:
2 Code:
sed /[0-9]\{3\}/p /tmp/qqq I don't know why because if I run: Code:
egrep [0-9]{3} /tmp/qqq Code:
232323 I tried even with and without quoting or even with and with without "\" or even using "-r". OK in this little example I could use egrep but I am trying to do something more complex and sed would be useful if it worked as I (perhaps wrong) expected Could you help me? |
Hi,
Code:
sed -n '/[0-9]\{3\}/p' /tmp/qqq |
All times are GMT -5. The time now is 11:25 PM. |