Search other files and folders based on first x characters of a given file name

Discussion related to "Everything" 1.5 Alpha.
Post Reply
eswul62
Posts: 132
Joined: Wed Jul 31, 2013 6:07 am

Search other files and folders based on first x characters of a given file name

Post by eswul62 »

Maybe I am overlooking the solution, maybe it just isn't possible yet, I vainly searched for a solution for the following:

Example - whilst organizing files/folders.

In Explorer/Directory Opus, say I have a file name titled: file name xyz blah blah ... pdf

Based on the first part of that file I need to find -other- files and folders.
So, other files/folders starting with the first same characters, let's say first 10-12 characters or so.

My steps right now : 1) select file, 2) hit f2, 3)select fist words/characters, 4)ctrl-c, 5)escape, 6)paste clipboard in Everything search box.

Q: Would there be a command line instruction to do this (based on first 12 characters)?

(BTW - am facing the below issue on a very regular basis)

Thanks.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search other files and folders based on first x characters of a given file name

Post by void »

regex:(.{12}) add-column:1 dupe:1


regex: = enable regular expressions.
( ) = capture group - Regular Expressions Match 1
.{12} = match 12 characters.
add-column:1 = show the captured text. (optional)
dupe:1 = find files with the same captured text.

regex:
add-column:
dupe:
eswul62
Posts: 132
Joined: Wed Jul 31, 2013 6:07 am

Re: Search other files and folders based on first x characters of a given file name

Post by eswul62 »

Thanks a lot!
Will check and get back on this soonest.
(Have to go out now)
Post Reply