Skip to content

Instantly share code, notes, and snippets.

@akanehara
Created December 5, 2016 01:37
Show Gist options
  • Save akanehara/63ab27947eaac3606da493e43a89dbf4 to your computer and use it in GitHub Desktop.
Save akanehara/63ab27947eaac3606da493e43a89dbf4 to your computer and use it in GitHub Desktop.
BEGIN {
OFS = "\t";
E = L-1 ;A = 0; I = 1;
do {
B = A + W - 1;
if (E < B) B = E;
print A, B;
A = B + 1;
} while (A < L);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment