How to print only the lines that contain three or more sequential consecutive digits?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
have a text file contain list of numbers i want to print only the lines that contain set of three sequential consecutive digits . The input list 123 321 567 765 124 568 12345
The output should contain 123 321 567 765 12345 Thanks
PRINT ONLY THE LINES THAT CONTAIN THREE OR MORE SEQUENTIAL CONSECUTIVE DIGITS.
command-line
add a comment |Â
up vote
0
down vote
favorite
have a text file contain list of numbers i want to print only the lines that contain set of three sequential consecutive digits . The input list 123 321 567 765 124 568 12345
The output should contain 123 321 567 765 12345 Thanks
PRINT ONLY THE LINES THAT CONTAIN THREE OR MORE SEQUENTIAL CONSECUTIVE DIGITS.
command-line
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
have a text file contain list of numbers i want to print only the lines that contain set of three sequential consecutive digits . The input list 123 321 567 765 124 568 12345
The output should contain 123 321 567 765 12345 Thanks
PRINT ONLY THE LINES THAT CONTAIN THREE OR MORE SEQUENTIAL CONSECUTIVE DIGITS.
command-line
have a text file contain list of numbers i want to print only the lines that contain set of three sequential consecutive digits . The input list 123 321 567 765 124 568 12345
The output should contain 123 321 567 765 12345 Thanks
PRINT ONLY THE LINES THAT CONTAIN THREE OR MORE SEQUENTIAL CONSECUTIVE DIGITS.
command-line
command-line
edited 42 secs ago
asked 7 mins ago
Ahmed
625
625
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago
add a comment |Â
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477579%2fhow-to-print-only-the-lines-that-contain-three-or-more-sequential-consecutive-di%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Possible duplicate of Filtering out numbers that have sequential- consecutive or non-consecutive digits
â Jeff Schaller
3 mins ago