1645
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 08 Jun 2024
1645 points (97.6% liked)
Technology
60012 readers
3076 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 2 years ago
MODERATORS
You know what would be a nice thing to put into windows?
A fucking decent way to search for files.
Also, grep and tail, as implemented in Linux. It's 2024 and there's no native equivalent to
tail -f *.log
. How embarrassing.File search is really awful on windows for no reason at all. Your complaints about commandline utilities is not accurate though. Windows has native powershell equivalents to both
grep
andtail
. You useSelect-String
instead ofgrep
andGet-Content -Wait
instead oftail
.IME
Get-Content
doesn't work for multiple files. Unless maybe I put it in a foreach loop or something. But that's way more keystrokes thentail -f *
Nobody ever accused powershell of being concise. Its uses a completely different philosophy, object oriented rather than string based. This makes powershell nicer to write scripts in but also makes it worse at bash style one-liner commands.
Get everything: https://www.voidtools.com/ (the alpha version can also index the content of files). It's search is instant. As in < 1 second for any file on any of your harddisks (even ones not connected right now).
For base linux cmdline tools I just install Git for Windows it includes tail, sed, grep, tee, iconv, less, scp and tons more. I need git anyways so win-win.
I do small business support. Everytime I do a windows install I do a ninite install of a bunch of things. Everything is always in the set. The fucntionality should have been in windows since NTFS was introduced
Yeah, even XP had Rover, the search dog.
Ninite and Chocolatey helps a bit. But then you get to the point where there is no automation for a start menu entry for some packages. It's a bit of a mess.
A colleague installed Python from the MS Store on Windows 11 it messed up all python software, PyCharm, the other python versions and some file associations. Quite a mess.
Windows Search used to be awesome, and then they decided to over-complicate it.
I distinctly remember that once it has indexed everything, it was pretty fast, yeah. Back in the 00s anyway
https://superuser.com/questions/12943/how-do-i-replace-the-stupid-windows-xp-dog-assistance-search-with-the-classic-wi /s
Or do you mean in cmd not powershell?
IME this doesn't work for multiple files. Not nearly as well as tail -f *.
Plenty of times I'm troubleshooting something without knowing which log file I should pay attention to. So watching everything happen in realtime with the error helps, a ton.
I doubt the majority of MS users need to tail a log file. And of those of us that do, how many don't know that Notepad++ does it?
Isn't that one of the things this does? It was in the advert wasn't it?
Have you heard of WSL?
As someone who does product dev support, unfortunately I have.
get listary it’s freemium (i use free version forever and it works fine) you can search by double tapping control and it instantly gives you the files you search for
You can do a commandline "dir /s *.log" to search an entire directory it works better than the normal file search generally. Unless I misunderstand what you're asking.
-f
follows the file so you can see updates as they come in to the bottom of the file. I wasn't aware this worked with globs, but that's neat.Is that what
/s
does? I haven't used Windows in years.Oh, perhaps not. I may've just understood how you're using the search. /s is just a straight search if the directory, I don't know that it can be used to generate dynamic results like that. Go figure.