Mask or rules that must include two strings
#3
well you could achieve this by masks and maskfiles yes, but but this will be a huge task as you have to generate all possiblities on your own, you could utilize combine from hashat tools for this, ill give you a start

1.txt
Code:
world
WORLD
hello
HELLO
?a
?a?a
?a?a?a
?a?a?a?a
?a?a?a?a?a

i added these ?a to 5 as this will make it easier to know (4) when to break

combine 1.txt 1.txt > 2.txt
combine 1.txt 2.txt > 3.txt
combine 1.txt 3.txt > 4.txt


copy/concat this 4 files into one file, there will be lines which will not match (to short, to long), you have to clean them (python, bash whatever) on your own, use the matching lines as input maskfile, these should cover all possibilities
Reply


Messages In This Thread
RE: Mask or rules that must include two strings - by Snoopy - 12-19-2022, 06:21 PM