05-28-2012, 04:05 PM
(05-28-2012, 03:39 PM)M@LIK Wrote: Okay, a bit big progress here!
@Pixel:: I have implemented that rule, any 4 or above characters in alphabetic order will be knocked out! Using the sed itself!
I also made the command-line much more easier, all you have to do now is:
1- Make a new text file and paste the following:
And save it.Code:/\(.\)\1\1/d
/\(.\).*\1.*\1/d
/\(.\).*\1.*\(.\).*\2/d
/\(ABCD\|BCDE\|CDEF\|DEFG\|EFGH\|FGHI\|GHIJ\|HIJK\|IJKL\|JKLM\|KLMN\|LMNO\|MNOP\|NOPQ\|OPQR\|PQRS\|QRST\|RSTU\|STUV\|TUVW\|UVWX\|VWXY\|WXYZ\)/d
2- When generating or filtering a list:
And that's it!Code:mp64 ?u?u?u?u?u?u?u?u | sed -f [the_script_here]
I'd strongly recommend this as we are having more rules, it will be hard to put all this in the command-line itself.
Have a try and let me know what you get.
WOW M@LIK thats one awesome sed command thanks for your effort. Time for some testing...me thinks