3 ms·Maybe this shouldn't be a shell script. A C implementation would be quite portable and also pretty fast.by VMG 15y agoMaybe this shouldn't be a shell script. A C implementation would be quite portable and also pretty fast.