Reputation
Top tag
Next privilege 500 Rep.
Access review queues
Badges
3 10
Newest
 Nice Answer
Impact
~58k people reached

Mar
6
awarded  Nice Answer
Jan
8
awarded  Yearling
Jan
8
answered Include in user defined macro fails
Jan
3
comment Is Gzip supposed to honor original filename during decompress?
I've added a test to show that the -N option works -- at least in Cygwin on my Windows PC.
Jan
3
revised Is Gzip supposed to honor original filename during decompress?
Added test and results
Jan
3
answered Is Gzip supposed to honor original filename during decompress?
Sep
24
awarded  Autobiographer
Apr
28
answered method to subtract text strings common in two files?
Apr
21
awarded  Caucus
Apr
16
comment Matching only numbers that come in numerical order
I'd suggest inserting the following code in a line after while (i <= count+maxgap) {: print "Searching for [" i "]", which should tell you exactly what page number the script is searching for at any given moment. Then you can compare the text that it is searching for (but not finding) to the text that you expect it to find in the following paragraph and see if there are any differences.
Apr
15
comment Matching only numbers that come in numerical order
For the test case, maxgap=2 sufficed. The only reason to make it much larger would be if there was a much larger genuine gap in the sequence, which seems unlikely in the context. How big did you have to make it and what was the sequence of bracketed numbers in that case?
Apr
15
awarded  Custodian
Apr
15
reviewed Approve Matching only numbers that come in numerical order
Apr
14
answered Matching only numbers that come in numerical order
Apr
14
awarded  Commentator
Apr
14
comment Matching only numbers that come in numerical order
To clarify, [24] comes in numerical order after [3], but the intent is not to match [24] but to match [5], which also comes after [3] and is also not immediately after [3]? What would be the tolerable difference for a match? If a difference of 2 is OK, is a difference of 3 also OK?
Jan
8
awarded  Yearling
Aug
19
comment Trying to get example from Awk and Sed book to work on Ubuntu 13.04
Glad to help. If this answer has solved your problem, please go ahead and check the answer as accepted.
Aug
19
revised Trying to get example from Awk and Sed book to work on Ubuntu 13.04
added 188 characters in body
Aug
19
answered Trying to get example from Awk and Sed book to work on Ubuntu 13.04