Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


When 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.


I've done it for error codes but that was awfully cursed


But you need to search for both hex and dec codes for that


Yup which is still a one liner in grep


You can grep the snake case too in one grep

You can do almost anything in a grep




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: