3 ms·
I'll go first. Here is a command-line utility in C that counts: https://github.com/pjungwir/range https://github.com/pjungwir/range I thought I had a worse ex
by pjungwir 14y ago
I'll go first. Here is a command-line utility in C that counts:
https://github.com/pjungwir/range https://github.com/pjungwir/range
I thought I had a worse example, but it turns out it's not on Github . . . yet. :-)
- krallja 14y agoAwesome - it's like `seq(1)` but with other bases.
- pjungwir 14y agoIt's not totally useless, but then neither are search/replace. I'm pretty sure I hadn't seen seq when I wrote it. Perhaps the most embarrassing thing about it is how over-engineered it is. But I don't get to write C very often, so I wanted to enjoy it as long as possible. :-) What's wrong with sharing something like that with the world?
- jlgaddis 14y agoLike this? $ seq 13 24
- dwyer 14y agoI realize you wrote this quite some time ago, but I hope you're now aware that sh has range built-in. % echo {13..24} 13 14 15 16 17 18 19 20 21 22 23 24 % echo {24..13} 24 23 22 21 20 19 18 17 16 15 14 13
- pjungwir 14y agoI didn't know that, but it's great to learn I can get this functionality on any machine I want. Thanks for pointing it out!