4 ms·
Out of interest, how often do you do this, and what are the semantics of the numbers you're grepping for? I literally can't remember a time I've ever tried to g
by Smaug123 4y ago
Out of interest, how often do you do this, and what are the semantics of the numbers you're grepping for? I literally can't remember a time I've ever tried to grep for a number.
- duped 4y agoI've done it for error codes but that was awfully cursed
- jbverschoor 4y agoBut you need to search for both hex and dec codes for that
- duped 4y agoYup which is still a one liner in grep
- jbverschoor 4y agoYou can grep the snake case too in one grep You can do almost anything in a grep
- 4ad 4y agoWhen I was doing bare metal programming I was doing this all then time, depending on what I was doing maybe even tens of times an hour. And it's not just source code either, these days even debugging tools print values in this way making it a total PITA to reverse engineer things because you can't easily match values coming in from different tools, or from the tool and source code, etc.