There are N strings used as signatures
A file may contain these N strings. How can I determine whether the file contains "any one" of these strings?
Running "find string file" one by one is too slow. If there are too many signatures, the speed is very slow
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d test.txt&& echo %time%
This command can search multiple strings at once, but from the returned result I can't tell whether it contains the strings
Even if the file does not contain these strings it still shows %time% the same way, so how should this be written?
Are there any other tools that can do this? :)
A file may contain these N strings. How can I determine whether the file contains "any one" of these strings?
Running "find string file" one by one is too slow. If there are too many signatures, the speed is very slow
sed -e '/AAA/b' -e '/BBB/b' -e '/CCC/b' -e d test.txt&& echo %time%
This command can search multiple strings at once, but from the returned result I can't tell whether it contains the strings
Even if the file does not contain these strings it still shows %time% the same way, so how should this be written?
Are there any other tools that can do this? :)
