4 ms·
I can't emphasise how true this is. I've written tonnes of temporary scripts that parse some files or rename some directories, and then later discovered that I
by libeclipse 10y ago
I can't emphasise how true this is. I've written tonnes of temporary scripts that parse some files or rename some directories, and then later discovered that I could have done it with a single UNIX command.
I'm not employed as a professional software developer, so I still don't actually use the helpful UNIX commands. Takes all the fun out of it. :P
- z3t4 10y agoThe other day I had problems with grep, so I rewrote it in JavaScript ... I could have used awk, but at least my script is more then double as fast as awk. I think it's some sort of procrastination and being self managed. Reminds me that I should get off HN and start working.
- croon 10y ago> I could have used awk, but at least my script is more then double as fast as awk. I find this very hard to believe. Are you sure your awk implementation was okay?
- z3t4 10y agoI used this: awk '/pattern/' file I could upload my JavaScript to Github if anyone is interested.
- travv0 10y agoWhat problem did you have that the easiest way to solve it was by rewriting grep?
- TeMPOraL 10y ago... in JavaScript, of all things? And it's somehow fast?
- z3t4 10y agoI was investigating an e-mail problem, searching log files across several e-mail servers ... Did it go through this server, or that server ? After a lot of frustration I found out grep didn't show all matches ... I does report the right amount with the -c argument though.