Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
awsmprog832yalso is there a way to search inside file content or atleast files, in .rar archives without extracting them
-
@awsmprog you can not, _by definition_, look inside an archive without extracting it (at the very least into memory). also: what exactly are you searching for?
-
awsmprog832y@tosensei i'm searching for a string inside file contents in a .rar file which contains thousands of .txt and .html.
now, i've extracted the archive.
but the search is slow, using ripgrep makes it faster. but is there a way to index the content of the .txt and .html files for much faster search. -
TextCrawler is good on Windows: https://digitalvolcano.co.uk/tcdown... (also perf wise)
With metalsmith js (https://metalsmith.io) or a similar tool you can create custom processing pipelines without too much effort
The closest you'd be to "reading an archive's contents would be to extract them to a temp folder and remove them after the search operation has completed
VS Code also has a surprisingly performant and advanced search -
@awsmprog to make it faster _than what_? sorry, but without providing any baseline, that question makes no sense.
also: you know what an index means? _scanning the entire content_. which will only make sense if you're doing several searches. as for "is there a way to index it" - yeah. feed it into $SearchToolOfYourChoice. elasticsearch, a database with text index, windows search - pick your poison.
but if you're only searching for something once: just start your script and get on with your life while it's doing its job. -
Are you looking to search only once or many times? If the former you probably won't benefit from indexing
-
open in intellij. search for filename, particular text, everything is pretty fast + gui
-
for searching inside a zip, i think winrar is good for searching filenames as it provides a search bar. for non window platform, i am not sure.
if they are uncompressed, then again, opening in intellij will work just fine -
I'd give Sublime Texts "find in files" feature a go, you can use regex if you want.
-
awsmprog832y@NoToJavaScript nope. i've downloaded over 17gb archive of erotic stories . wanted to find some interesting stories
Related Rants
I've over 17GB of data, downloaded a website, al of the content is .txt and .html.
I want to search inside all of these files.
What is the best tool to do that? any command or some software which can index so it'll be fast?
question
help
search
tool