in reply to Find duplicate digits
This is my first post, and I was delighted to find this thread, as it almost exactly addresses what I want to do, with the exception that I would like to narrow the numbers down even further in comparison to the OP's spec.
Thus, I want to take 0000 to 9999 and select only those that have one pair of duplicate digits.
For example:
I am a noob, and this has turned out to be a bit beyond my skill level at this time . . . I was going the grep + regex on Bash route, however, upon seeing the Perl solutions in this thread, I believe I will only use bash to admin my system on the command line from now on :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find duplicate digits
by BrowserUk (Patriarch) on Apr 07, 2010 at 11:14 UTC | |
by mroman (Initiate) on Apr 07, 2010 at 13:09 UTC | |
by BrowserUk (Patriarch) on Apr 07, 2010 at 13:29 UTC | |
by mroman (Initiate) on Apr 07, 2010 at 14:15 UTC | |
by Anonymous Monk on Apr 07, 2010 at 13:14 UTC | |
by mroman (Initiate) on Apr 07, 2010 at 14:07 UTC | |
|
Re^2: Find duplicate digits (non-filter)
by tye (Sage) on Apr 07, 2010 at 14:41 UTC | |
by mroman (Initiate) on Apr 08, 2010 at 09:13 UTC | |
|
Re^2: Find duplicate digits
by Ratazong (Monsignor) on Apr 07, 2010 at 11:16 UTC | |
by mroman (Initiate) on Apr 07, 2010 at 13:18 UTC |