Extract .gz files and unzip them using the 'tar' or 'winzip' command.

New Contributor

Need to create one scripts to extract .gz files and unzip them using the 'tar' or 'winzip' command, for each unzipped file use the "select-string" or "get-content" powershell commnads to locate any instancesof the corrupted string values.

4 Replies
Could you give some more details and what do you have so far?
what types of details, do you require further?
Above mentioned things is my requirement
"For each unzipped file use the "select-string" or "get-content" powershell commnads to locate any instancesof the corrupted string values." Don't understand, what are the types of files that you extract/what do you expect/what are the issues with the files and the reason that you need to check them?
And also, what have you tried yourself? Do you have a start script and you don't know how to proceed? This is not the place to just ask for script without effort of yourself...