You can search for text strings within compressed files without manually extracting everything first:
: Use the -scs switch (e.g., -scsWIN , -scsUTF-8 , or -scs1251 ) to tell 7-Zip which character set to use for list files . Programming and Automation
If you need to extract or search text from .7z files programmatically:
If you are looking to search for specific within a .7z archive, or if you need to handle character encoding for file names and content, there are several methods depending on your needs. Searching Text Inside a .7z Archive