Thesis_v5_Final_revised_final_complete_v2_(2).pdf
grep -irl "some text that the file would have"
(Obiously only work for text files, but that’s enough to cover 90% of cases for me)
Now we need a /c/grep_irl
That’s a solid windows shame.
Fun fact: I use “git bash shell” over windows’ cmd just because of grep
You can also use WSL to get a full Linux there. If WSL1 is still available, it would be better for this use case.
I don’t know what those flags mean, but from context I think this is a command I’ve needed a bunch of times but haven’t had the time or energy to learn about yet. So thanks! I can’t wait to try it!
- case
i
nsensitive r
recursive- only show fi
l
enames
I also like to use:
I
(capital i) to skip binary files, if I’m in a folder with heavy images/videos/etcc 3
to show 3 lines around the matched text
- case
BoogerAids.pdf
hmmm is the most recent version of this file the one named “newest” or “new (actual)”?
spends ten minutes figuring out which one’s the latest
has to save it again
“new (actual)(for real)”
Final Final Final(Real)
I used to have this problem, but now I go with one of two solutions:
- filename-$(date +%F) (or similar)
- example: notes-2024-12-14.txt
- can be expanded to include further time details if more than one iteration per day is released
- filename-Mk#
- example: product-design-MkII (Or Mk2 if you prefer)
- pretty much infinitely expandable and you always know which is latest
- admittedly I’m pretty sure most systems wouldn’t sort Roman numerals correctly, but I rarely have enough iterations of anything to worry about it
edit: Also, with either, you could pretty easily write a script that would symlink something like
filename-latest
to the newest one, but depending on how you’re generating the files in question, that might be less viable.- filename-$(date +%F) (or similar)