2 ms·
Very neat. Anyone know why curl -s https://ec2.shop | grep 't2' would work, but curl -s https://ec2.shop | grep 'm4' does not? Both commands work if
by css 6y ago
Very neat. Anyone know why
curl -s https://ec2.shop | grep 't2'
would work, but
curl -s https://ec2.shop | grep 'm4'
does not? Both commands work if I write the curl result to a file, but when I pipe from curl, the pattern `m4` matches all instances of the number 4.
- wolfgang42 6y agoIt’s not matching every number 4, just the ones at the start of a column. The m is coming from “ESC[31m”, the escape code used to set the color of the text in the column.
- kureikain 6y agoThank you, this is a bug. The color code for blue is `"\033[34m` so it always match m4 for anything :(. Just push a fix by disabling color as suggestion in here as well
- css 6y agoAh, got it, thanks for the clarity.