2

I have a directory with many .zip files. I wish to search through them to match an uncompressed file size (I am trying to find which .zip my file originated in, and the name's been changed). IDEALLY, I could say "ls -z /zipfiles | grep "123456" and ls would treat the .zip as a directory. Fuse might be made to work, but it only works with single files and is cumbersome.

1 Answer 1

0

Will something like this work?

for i in *.zip ; do
  echo $i;
  unzip -l ${i} | grep "123456";
done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .