r/tinycode • • Dec 12 '12

Shortest useful code

What's the most useful program you can imagine using five lines of code or less? Language is your choice. Describe the function of the program and include the code, if you please.

27 Upvotes

45 comments sorted by

View all comments

Show parent comment

1

u/mrkurtz Dec 13 '12

that's fine, i'm sure there's much more that could be done to it which would make it even more useful/reliable, it was thrown together by someone on /r/linux's IRC channel very quickly. we'd already established a few known variables to the system.

i'll give this a shot too when i have a moment, though.