Find Files by Length of Name AND by type of file OR by name

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
umapati
Posts: 12
Joined: 11 Aug 2011 13:40

Find Files by Length of Name AND by type of file OR by name

Post by umapati »

I'm sure this is very simple, but I can't figure out how to do it. I want to combine len: >x when searching for a type of file (e.g. *.pdf) or other named file.
Help section says "Simply prefix "len:" to the search term in the name field." But "search term" here is simply the number for length--I think.

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files by Length of Name AND by type of file OR by n

Post by admin »

Something like this?

Code: Select all

:*.txt and len: > 255

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Find Files by Length of Name AND by type of file OR by n

Post by Papoulka »

I hadn't done this before so tried it out. For folks who don't (but should! :D) normally think of filenames as including path, use "lent" i.e.

Code: Select all

lent: > 26 and :*.txt

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Find Files by Length of Name AND by type of file OR by n

Post by admin »

Note that the initial colon is the Boolean marker. The second term needs a field prefix too if it is a different field from the first one. So it should look like this:

Code: Select all

:lent: > 26 and name:*.txt

umapati
Posts: 12
Joined: 11 Aug 2011 13:40

Re: Find Files by Length of Name AND by type of file OR by n

Post by umapati »

Great. Thank you. For beginnners like me a help section of vast size is needed for the wonderful power of XYplorer. But the Forum serves for that. Then again, could there perhaps be a short bibliography for the most necessary basics?

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Find Files by Length of Name AND by type of file OR by n

Post by bdeshi »

er, the tour might help. Link in my signature below
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply