Search for zero size files inside archives

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 252
Joined: Wed Jan 09, 2013 9:06 am

Search for zero size files inside archives

Post by w64bit »

Is there any way to search for zero size files inside archives?
Something like container-file-size: ?
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Search for zero size files inside archives

Post by NotNull »

No, there are no features that support this.
therube
Posts: 4953
Joined: Thu Sep 03, 2009 6:48 pm

Re: Search for zero size files inside archives

Post by therube »

(Outside of Everything...)

If you had a listing of "ZIP" file contents, you could search for specific values in specific fields.

So if you have a listing of a file named 'out' that contained:

7-zip.exe l *.ZIP

Code: Select all

7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20

Scanning the drive for archives:
1 file, 1207592 bytes (1180 KiB)

Listing archive: X2-100322.ARJ

--
Path = X2-100322.ARJ
Type = Arj
Physical Size = 1207592
Name = X2.ARJ
Created = 2022-10-03 09:34:12
Modified = 2022-10-03 09:34:12
Host OS = 11

   Date      Time    Attr         Size   Compressed  Name
------------------- ----- ------------ ------------  ------------------------
2022-10-03 07:57:58 .....            0      1207472  X2.txt
------------------- ----- ------------ ------------  ------------------------
2022-10-03 07:57:58            3027495      1207472  1 files
You could do something like:

awk.exe "$4 == 0" out*

Which says to search all files named out*, where the fourth column (Size, as output by 7-zip) is 0.
(Now, that's very basic, & using UNIX commands in DOS can be awkward ;-).)
Post Reply