3 ms·
bash, curl, pcregrep, sort, uniq and wget is not what I'd call "one wget call".
by akx 8y ago
bash, curl, pcregrep, sort, uniq and wget is not what I'd call "one wget call".
- slenk 8y agoTo the hardcore bash users, I think they call that 'easy'. I have someone like that on my team - holy crap some of the bash stuff they can come up with
- zo1 8y agoI hope none of that stuff makes it into your main codebase? If there is even a remote chance of requiring maintenance by someone other than the person that wrote it, that is. Which is probably 99.99% the chance, unless it's temporary/throwaway code.
- lou1306 8y agoHardcore bash sure sounds like fun, but when things start getting too big or messy I usually find a Python script with some `subprocess` [0] tricks to be way easier on the eye. [0]: https://docs.python.org/3/library/subprocess.html https://docs.python.org/3/library/subprocess.html