- nix atool.out
for file in *.zip ; do acat $file filenamepattern 2>/dev/null | grep textpattern | uniq | sed -e 's/^/'$file' /g' ; done
(https://unix.stackexchange.com/questions/225770/searching-inside-archives-for-specific-files-and-patterns, https://linuxhandbook.com/redirect-dev-null/)
Created
July 5, 2024 15:46
-
-
Save 573/01d78b24b0edc78e60f453477db40e15 to your computer and use it in GitHub Desktop.
search set of archive files for filename according to pattern and (optionally) text in found files according to text pattern
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment