Page 1 of 1

Exclude bin files from search doesn't seems to work

Posted: 2019-01-18, 10:51 UTC
by Cirunz
Hi, I'm trying to search in a folder for a text inside all files but .bin
Searching online I found that I should indicate the exclusion this way:

Code: Select all

*.*|*.bin
But even using this search text, it keeps searching in bin files:
Image: https://i.imgur.com/6r87CZc.png

I tried with this terms:

Code: Select all

*.*|*.bin
*.* | *.bin
*.*!*.bin
*.* ! *.bin
It doesn't work. I tried to exclude another type of file with

Code: Select all

*.*|*.txt
and it did work: total commander searched in all files but txt ones
It seems to have a problem only with bin files in particular.

Am I doing this wrong?

Thanks

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-01-18, 12:16 UTC
by Hacker
Cirunz,
You have a packer plugin installed which treats .bin files as archives so TC tries to open them and look for the text inside the files stored in the .bin archive. IIRC some ISO plugin treated .bin files as archives, so either you remove that association from the plugin or you disable searching in archives for this search.

HTH
Roman

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-01-18, 15:53 UTC
by Cirunz
Hacker wrote: 2019-01-18, 12:16 UTC Cirunz,
You have a packer plugin installed which treats .bin files as archives so TC tries to open them and look for the text inside the files stored in the .bin archive. IIRC some ISO plugin treated .bin files as archives, so either you remove that association from the plugin or you disable searching in archives for this search.

HTH
Roman
Oh right sometimes they are used this way. I didn't need to search into archives for this, so I disabled the options and it worked.

Thank you very much!

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-05-31, 09:43 UTC
by Horst.Epp
Savage296 wrote: 2019-05-31, 09:37 UTC I cannot think of a scenario where I would care about matches in binary files. If such a scenario exists, surely it must be the exception rather than the norm. Why doesn't grep ignore binary files by default rather than requiring setting this flag to do so?
Because Grep doesn't know anything about archives
but TC is a file manager which sometimes may encounter .bin named archives.
Whats your problem with setting the option or remove the association from a plugin ?

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-05-31, 20:40 UTC
by Hacker

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-06-01, 08:33 UTC
by Horst.Epp
That link doesn't say anything new and my post is still valid. :D
Grep doesn't know or handle archives.

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-06-01, 12:18 UTC
by Hacker
Horst.Epp,
It says the user you were responding to was a spambot.

Roman

Re: Exclude bin files from search doesn't seems to work

Posted: 2019-06-01, 14:00 UTC
by Stefan2
Horst.Epp wrote: 2019-06-01, 08:33 UTC
That link doesn't say anything new ...


Read the first sentence there: "I cannot think of a scenario where...."


Good find, Roman.