Questions tagged [search]
search is used for questions relating to searching through the contents of files. For searching for filenames using the locate command use the tag locate.
574
questions
0
votes
2
answers
58
views
command suggestions while typing for beginners
When typing the commands in any shell, can there be any kind of setting that can be enabled for beginners to type just an alphabet and it will suggest multiple commands that the beginner might be ...
0
votes
0
answers
52
views
Vim: using a match (/ regexp) as a boolean to direct program flow
I'm developing a script for Vim to automatically update a "Last modified" timestamp on files. I'm sure this has been done before. I suspect answers will direct me to these existing ...
0
votes
1
answer
81
views
How to search in a pdf or text file by a regex pattern and output locations of matches?
Is there a pdf viewer that allows me to search its text by a regex expression?
In case that I haven't found one, I am thinking about extracting the text and layout from a pdf file by
less my.pdf > ...
0
votes
2
answers
82
views
Is there a way to find all PNG files in a folder that have transparent pixels
I have a couple thousand PNGs, all of them probably support the alpha channel but only some of them actually use it (Only some of them actually have transparent pixels).
Is there any way at all for me ...
-3
votes
1
answer
77
views
Can I use the DuckDuckGo search engine without Creating a DuckDuckGo Email Protection account? [closed]
Will it be legal if I use the DuckDuckGo search engine without Creating a DuckDuckGo Email Protection account?
Or
Can I use the DuckDuckGo search engine without Creating a DuckDuckGo Email ...
0
votes
0
answers
34
views
Search a binary file for a list of 500 000 binary patterns
I have a list of binary "strings" in a file delimited by newlines. I'd like to use that to search another binary file to check which of these patterns the binary files contains and at which ...
0
votes
0
answers
42
views
Recursively find ebooks that match all the search strings
I have few pdf, epub, mobi files. I want to find all files which have the words:
all-or-nothing
pervasive
catastrophizing
I mean all words have to be present in the file. They do not need to be in ...
0
votes
0
answers
32
views
Fuzzy Search for filenames with synonyms and tags (auto generated)
Filesystem: Ext4
I create separate files for each topic.
I have thousands of files segregated into 2 or 3 levels of hierarchical broad categories. I would like to search for these files efficiently.
...
1
vote
1
answer
46
views
Search and replace content
PIN A
1 1:3 0:8
0 0:0
PIN B
1 1:0
0 0:0
Z Z:0
PIN C
1 1:3 0:8
0 0:0
Z Z:0
I would like to change the content on PIN A & PIN C only without affecting PIN B to
0 0:3
Z 0:3
Can't seem to find a ...
0
votes
0
answers
92
views
Bash reverse search inserting characters into command after hitting tab
SYSTEM:
Ubuntu: 20.04
Kernel: 5.4.0-162-generic
bash: 5.0.17(1)
I found a strange problem that when I use bash's reverse search with CTRL+r, I will find a command I want to run. I select TAB to ...
0
votes
0
answers
65
views
How to "fuzzy" match (misspelled) strings in a directory?
I would like to search a directory(tree) with textfiles for strings that are approximately similar to a certain string, similar to this https://en.wikipedia.org/wiki/Approximate_string_matching. I ...
-1
votes
2
answers
168
views
Search for a string at proximity with another string?
Say I want to search for '123456789' and I want it to be near 'firstname'. Is there a way to do it?
I've 0 logic to do this. Maybe piping greps could work?
What kind of algorithm is best suited for ...
1
vote
1
answer
85
views
Just as there is "locate" to "find". Is there a database for a faster "grep"?
locate (or rather, updatedb) is somewhat simple: it takes the output of find for the required paths (usually '/'), sorts it, and then compresses it with a front-compression tool (frcode), in which the ...
0
votes
1
answer
76
views
How to do a random search in vi editor?
By random, I mean neither from top, nor from middle, nor from bootom. The search should return randomly ordered results.
eg: I am searching for "failed" in vi editor. I want randomly ordered ...
0
votes
1
answer
80
views
find content of files with other text and combination of xml tags, grep in grep?
I have a lot of files that match a grep 'xmltag' and 'subtag'.
random xml
needed_text
random xml
<xmltag>
<subtag>content</subtag>
</xmltag>
I want to search for files that ...