It took me a few minutes to work this out, but finally ...The first three searches made sense to me (all search strings were entered without quotes)
The fourth search rattled me.
Because I am used to programming languages, where, apart from strings, spaces are redundant - Indeed short books have been written on making use of white-space in program code - I wrote the fourth search thinking "brahms AND NOT sonata" but the search string, using <space> as AND reads:-
"brahms" AND "!" AND "sonata"
And of course, I have no objects whose name contains all three strings!
The NOT operator must be applied to a string, must be applied immediately to the left-hand end of a string.
Is that correct? Can i go on learning now?
Thanks, Chris
Traps for young players ...
Re: Traps for young players ...
!
So even by itself (without Brahms or sonata) should give zero results.
But the rabbit hole goes deeper ...
Try
!!
If you have a file named My favorite Brahms sonata!.wav, you can search for the exclamation mark character by enclosing it in double quotes, like
"!"
"sonata!"
The search
Brahms "!" sonata
(just to stir things up a little )
-
- Posts: 686
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Traps for young players ...
Oh well, if I am allowed to be playful (grin) ... Succesively long strings of exclamation marks flip-flop between zero and non-zero results.
Next question: How to filter out responses about Null results from the Not operator so that responses from NotNull do Not show up OR show up as Null?
Cheers, Chris
-
- Posts: 686
- Joined: Wed Jan 05, 2022 9:29 pm
Traps for young players - command lines
Charlie Chuckler's Weekly, so my early education has stood me in good stead.
(1) I used Everything itself to locate the executable then used Right-click, Copy Full Path, so I know that I got that part right.
(2) I pasted the parameter directly from the excellent Help page, so I know that I got that part right
(3) I used Everything itself to locate the EFU list I created before lunch then used Right-click, Copy Full Path, so I know that I got that part right
(4) I typed in the Y: by hand, reasoning that if I can't be trusted to get that right, I should have another nap and try again tomorrow.
What can possibly go wrong?
FREE fish-and-chips dinner at Skippers for the first four correct answers (pay your own air fare and bring a rain-coat)
Cheers, Chris
This is like those "Spot the Difference" puzzles I used to solve in (1) I used Everything itself to locate the executable
ext:exe everything
(2) I pasted the parameter
-create-file-list
(3) I used Everything itself to locate the EFU list I created before lunch
ext:efu
(4) I typed in the Y: by hand, reasoning that if I can't be trusted to get that right, I should have another nap and try again tomorrow.
What can possibly go wrong?
FREE fish-and-chips dinner at Skippers for the first four correct answers (pay your own air fare and bring a rain-coat)
Cheers, Chris
Re: Traps for young players ...
Quotes (vs. "not quotes").
(Note how I put "not quotes" in quotes.)
(I'll also note that I have written, in these parts, about quotes.
I'm thinking I might put forth a constitutional amendment banning quotes.
US only, CA need not apply.)
Quotation marks
(Note how I put "not quotes" in quotes.)
(I'll also note that I have written, in these parts, about quotes.
I'm thinking I might put forth a constitutional amendment banning quotes.
US only, CA need not apply.)
Quotation marks
Re: Traps for young players ...
Did Copy Full Path (along with 'Double quote copy as path') do that, or did you?then used Right-click, Copy Full Path
-
- Posts: 686
- Joined: Wed Jan 05, 2022 9:29 pm
Re: Traps for young players ...
OK TheRube. You get only one, not two free meals down the fish'n'chips. Because your first answer was incorrect. Three meals left.
Incorrect because in both command window examples, quotes are in use.
But yes: I was documenting my work as I went, in MSWord (because I have an automatic save every minute) and have MSWord set up to use "smart quotes"(1) which I then mindlessly copied into my command window.
I caused the double quotes to appear because, as is my wont, I always type two double-quotes to ensure balance, then paste between the two double quotes. MSWord, seeing smart-quotes is set made them smart quotes (also known as curly quotes in some parts of the UK)
This can be confirmed quite easily by choosing Copy Full Path and pasting into Windows Notepad. No quotes appear.
So now I see that you didn't propose a correct answer. No lunch at all for you. Four meals left for grabs.
But then I went back and saw that second copy "Copy as path" is a second full-path copy, but this time with double-quotes:- OK. I will split my meal with you; you can have the fish, caught this morning about a mile past the sewage outfall.
(1)habit-forming, aren't they?!!???
Cheers, Chris
Yes, I did, July noted even though it is only June here (he said staring out the rain-swept window) I'd skip the amendment if I were you. Everyone has the right to bear quotes.Quotes (vs. "not quotes").
(Note how I put "not quotes" in quotes.)
(I'll also note that I have written, in these parts, about quotes.
I'm thinking I might put forth a constitutional amendment banning quotes.
US only, CA need not apply.)
Incorrect because in both command window examples, quotes are in use.
But yes: I was documenting my work as I went, in MSWord (because I have an automatic save every minute) and have MSWord set up to use "smart quotes"(1) which I then mindlessly copied into my command window.
Yes.then used Right-click, Copy Full PathDid Copy Full Path (along with 'Double quote copy as path') do that, or did you?
I caused the double quotes to appear because, as is my wont, I always type two double-quotes to ensure balance, then paste between the two double quotes. MSWord, seeing smart-quotes is set made them smart quotes (also known as curly quotes in some parts of the UK)
This can be confirmed quite easily by choosing Copy Full Path and pasting into Windows Notepad. No quotes appear.
So now I see that you didn't propose a correct answer. No lunch at all for you. Four meals left for grabs.
But then I went back and saw that second copy "Copy as path" is a second full-path copy, but this time with double-quotes:- OK. I will split my meal with you; you can have the fish, caught this morning about a mile past the sewage outfall.
(1)habit-forming, aren't they?!!???
Cheers, Chris
Re: Traps for young players ...
And here I thought this was an easy way to equalize my debt to you -- I lost a bet which I can't even remember what it was about, but it will cost me a coffee. But these free meals don't come easy ...
The answer itself was easy enough though: The error message comes from CMD and not from Everything, so the clue would be in the very first part of the command. As you pasted the path, it had to be the quoting of this path.
Oh well, will have to wait for the next challenge ...
The answer itself was easy enough though: The error message comes from CMD and not from Everything, so the clue would be in the very first part of the command. As you pasted the path, it had to be the quoting of this path.
Oh well, will have to wait for the next challenge ...
Now I wonder: how is the coffee at Skippers?ChrisGreaves wrote: ↑Tue Jun 13, 2023 6:34 pm you can have the fish, caught this morning about a mile past the sewage outfall.
-
- Posts: 686
- Joined: Wed Jan 05, 2022 9:29 pm