Hello. Doing this echo "stuffb01b02stuff" |grep -o b[0-9][0-9] will print: b01 b02 as it should.
echo "stuffb01b02stuff" |grep -o b.. will only print last match. so it will print: b02 using b.. works both on linux and with freebsd-grep Thanks!
Hello. Doing this echo "stuffb01b02stuff" |grep -o b[0-9][0-9] will print: b01 b02 as it should.
echo "stuffb01b02stuff" |grep -o b.. will only print last match. so it will print: b02 using b.. works both on linux and with freebsd-grep Thanks!