Mask processor
#2
If you read the --help output of maskprocessor it should be very clear:
-q is used to limit the number of identical characters that are next to each other (-q x means that each character should be repeated less than x times, so the maximum of repetition is x-1)
-r is used to filter out all lines that have at least one character repeated more than x times (no matter if these identical characters are next to each other or not. This means that this is much more restrictive than -q, because it looks at the whole line, and counts every instance of that specific character also if there are some "other characters" between the repeating chars). The number that you need to specify is similar to -q: i.e. you need to specify x, if you want to filter out everything that is above x, therefore the maximum is x-1

an example of both of these options should make it very clear:

-q:
Code:
mp64 -q 4 -1 23 ?1?1?1?1?1
22232
22233
22322
22323
22332
22333
23222
23223
23232
23233
23322
23323
23332
32223
32232
32233
32322
32323
32332
32333
33222
33223
33232
33233
33322
33323

-r:
Code:
mp64 -r 4 -1 23 ?1?1?1?1?1
22233
22323
22332
22333
23223
23232
23233
23322
23323
23332
32223
32232
32233
32322
32323
32332
33222
33223
33232
33322


Messages In This Thread
Mask processor - by slayerdiangelo - 07-04-2017, 02:35 PM
RE: Mask processor - by philsmd - 07-04-2017, 03:37 PM