Mask processor
#1
Lightbulb 
The -r parameter in the mask processor determines the no. of repetitions  r8t?But if I give the following cmd:


 mp32 -r 3 -1 abc ?1?1?1

It is not returning chars like aaa,bbb,ccc e.t.c,why is that?A char should repeat 3 times by the definition but it's not.


Also plz give me the difference b/w -q and -r parameter in mp with eg:
#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