Determine Consecutive NumbersRSS

1 reply

Last post Aug 25, 2016 10:32 AM by Rovastar

  • Determine Consecutive Numbers

    Aug 25, 2016 08:36 AM|hg363|LINK

    I have 5 numbers

    18   19   20   40   41

    I would like a log parser script to interrogate these numbers and evaluate how many of these numbers are consecutive. In this case the answer = 5

    5   6   22   25   34

    In this case, the answer = 2

    2   11   13   14   21

    In this case the answer = 0

  • Rovastar Rovastar

    5406 Posts

    MVP

    Moderator

    Re: Determine Consecutive Numbers

    Aug 25, 2016 10:32 AM|Rovastar|LINK

    Maybe it is possible but I doubt it. LogParser was never really designed for these programming tasks.

    Troubleshoot IIS in style
    https://www.leansentry.com/