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.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
3answers
82 views

How to use an input file of non-exact filenames for an operation?

I have a file of filenames for files in a certain directory. However, some of the file names may: Have spaces in the original filename replaced with underscores (so directory/file with spaces ...
3
votes
0answers
1k views

Kate can't show some newline characters using escape sequences

Kate and KWrite both don't show all \n characters. Problems appear to be next to where there are empty lines. The problem isn't just in the highlighting itself. Wrong number of matches are found. ...
3
votes
0answers
122 views

Using ack to effectively search and RStudio project directory

I'm interested in running ack search on a RStudio project directory that mostly contains *.R script files but also some project files and often *.git files. Directory The project folder structure ...
3
votes
0answers
87 views

Recover text files and directory structure from the database created by Recoll?

A while ago, I ran Recoll which created a database on a partition, so that I could quickly search among all the text information in the contents of all files (text file, pdf, djvu, html, etc) in that ...
2
votes
1answer
27 views

How to give a program an additional name/label for search?

I am starting a lot of programs via the synapse launcher. For convenience, I'd like to give a program an additional name/label/tag/whatever, such as "XXYYZZ". Is this possible (on XFCE)?
2
votes
0answers
417 views

reverse-i-search not showing all results compared to grep

I have always used reverse-i-search to grab my old commands, however for some reason its not returning all the results, at least the results I am expecting. desired command cat ~/.bash_history | ...
2
votes
1answer
275 views

tool in terminal like helm-occur/helm-swoop for terminal?

I don't know whether this is the right place to post this question, but if you are not an Emacs user, I'll explain the basic usage of helm-occur/helm-swoop. I like helm-occur/helm-swoop for Emacs ...
2
votes
0answers
354 views

KMail: Search for messages with attachment

How can I search for messages with one or more attachments in KMail? The search filters don't show such an option, and when selecting "Message Status" there also isn't a criteria for attachments. I'...
1
vote
0answers
22 views

How do I enable listing of zsh commands as you type

on one of my machines while setting up zsh I seem to have accidentally enabled a pretty useful feature. when I search through command history it actually lists all the matching commands as I type. How ...
1
vote
0answers
33 views

Configuring default output for Aptitude package search

In most flavors of Linux that I've used, the output for apt search does not include the current state display but in Linux Mint (Sylvia) it is displaying and I would like to remove it because it ...
1
vote
0answers
32 views

Is there a tool for searching keywords super fast in many pdfs files?

I have a bunch of technical books, and I have been using pdfgrep for a while, but it takes substantial amount of time for searching all. can somebody recommend me of a cli tool for searching in pdf ...
1
vote
1answer
80 views

How to Replace a string by another in a text file

I would like to replace a given string in a text file into by another, but with one extra detail. Example: If the file content's is : Library Hello1 =============== any text here version: 0.1 ------...
1
vote
0answers
33 views

Index and search a directory

I have a directory tree containing many text-files. I would like to index the full-text of all these files (ignoring files with certain file-extensions), so that I can quickly search thorugh all of ...
1
vote
1answer
503 views

FTP, download files by wildcard search criteria

I need to download a series of files over ftp on a command line. The server I am downloading from has a folder structure which is like so: /path/to/file1/abcfile111def /path/to/file1/abcfile222def /...
1
vote
0answers
288 views

Evolution full text searching

the full text searching in Evolution (e.g, in the body of the mails) is very slow. I see that, in each Mailbox setting, there is a checkbox to index the bodys of the message (cf http://i.imgur.com/...
1
vote
0answers
27 views

How to search email with Jämsä for Jämsän in Thunderbird?

Finnish language has many many endings, but I cannot search easily the base word, etc by Jämsä. For instance, searching Jämsä will not give Jämsän in the basic Thunderbird search. A basic regex ...
1
vote
0answers
54 views

Is there a content search program/port (*not* index based) that's efficient for files needing text extraction filters

If using FreeBSD as a file server for windows clients, it's useful to be able to run file searches server-side rather than client-side. A typical example might be: find all files meeting some ...
1
vote
1answer
30 views

URL keyword searches in GNOME 3

I'm trying to find something in GNOME 3 to support keyword based searches. For example, I want to enter "yt car boys" in the system search dialog, and have it bring up https://www.youtube.com/results?...
1
vote
0answers
300 views

Search for occurrences of text in a long line in less

I am using less to view a file with many long lines. less automatically wraps these lines, but when I use / and n to search for something, it only shows the first occurrence of the text on a line. ...
1
vote
2answers
181 views

extract certain string, search and replace or keep a longer string contain the extracted value

The input file that needs to be edited is as below (can have more rows): bundle_id target_id length eff_length tot_counts uniq_counts est_counts eff_counts ambig_distr_alpha ...
0
votes
0answers
21 views

Can't Find Installed Software in Ubuntu Search

I have installed some software from downloaded files (not from a repo) but I would like to be able to find them through the Ubuntu search engine in order to have them available in my task bar. For ...
0
votes
2answers
52 views

How can I search date format in vi?

I want to search date format like 2019-07-12 11:22:33. but, in vi mode, :/2019-07-12 11:22:33 is not executed by white space. how can I search 2019-07-12 11:22:33? (other format is not pretty)
0
votes
1answer
24 views

Use reverse i search to cycle through only commands matching pattern

The contents of the command history file using history | less is: 555 ls 556 ls -a 557 echo "hello" 558 echo "hello again" 559 cd 560 pwd 561 echo "hello hello" 562 ls 563 echo "hello hello hello" ...
0
votes
1answer
30 views

How to search for a newline that is not preceeded by } and remove it

I want to use sed to search for line breaks that are not preceded by }. The regex for identifying theses cases is: [^}]$ . What I want to say: If the line ended without } then remove the new line. ...
0
votes
0answers
38 views

Gnome Activities search does not find most files

When searching files from Gnome activities search only some files are found. I cannot find a clear pattern in which. All files and folders in home/ are found. Nothing in ~/Picture and ~/Documents are ...
0
votes
0answers
26 views

How to create a regex matching a custom string at the beginning of line while ignoring all preceding whitespaces via ag silversearcher?

Give an example file with the content: // find me val ignore me = "" // I should not be found // find me // find me I want to find all the lines with find me using ag silversearcher. ...
0
votes
2answers
61 views

How to check if first column's string of file1 exist in the file2?

I have two files, file1.txt contains strings separated by commas: 1.1.1.1,string1,comment1 7.7.7.7,string3,comment3 2.2.2.2,string2,comment2 88.88.88.88,string4,comment4 999.999,999,999,string5,...
0
votes
1answer
39 views

Search list of names and their values from a file to another files?

I have two .csv files. First file has one column of list of names and second file has sixty columns including names and their values in all columns. I am looking to search names from first file to ...
0
votes
1answer
13 views

Recent activity is not recorded or lost

A couple of days ago I started to experience issues with search/activity log on my Arch Linux system to be precise what I mean I'm using search tools like Synapse and basic one from Cairo Dock both of ...
0
votes
1answer
65 views

Is there a variant of “strings” that only matches null-terminated C strings?

I'm up against a situation that seems like it must already have an implemented solution somewhere, but I'm having a tough time finding one. I'm looking for something that functions more or less ...
0
votes
3answers
161 views

Explode Depth Search in UNIX

I've a following data in file which has user and supervisor relationship. user |supervisor |id -----|-----------|---- a | b | 1 b | c | 2 c | d | 3 e | b | ...
0
votes
0answers
67 views

A letter is missed in Russian words to be searched in VIM

When I run: $ vim -s <(printf '/конфедерация') VIM opens and shows '/конфедерция' in the left bottom corner without 'а'. Why? There is no problem with '/стол' for example. But if the word is a ...
0
votes
0answers
63 views

To forward-search in Raspbian's Bash?

Keybinding CTRL-S is enabled by default in Debian/Ubuntu/OS X bun not in Raspbian. I can enable the reverse-search by in $HOME/.bashrc, which disables XON/XOFF, but it does not help with the forward-...
0
votes
1answer
393 views

how to print the count of matched /unmatched patterns and print multiple patterns separated by line

how to print the count of matched /unmatched patterns and print multiple patterns separated by line. Input example (test.log): This 23 line has eight 8888 This 11 line has three 3333 need 12 to ...
0
votes
1answer
65 views

Unix scripting : Writing to another file with “:” is failing

I have below record (and many other such records) in one file 9460 xyz abc (lmn):1027739543798. Taxpayer's identification number (INN): 123. For all IIB. 2016/02/03 I need to search ...
0
votes
1answer
104 views

Unwanted and or Abusive Web Requests

We have been contacted by our server host provider about Unwanted and or Abusive Web http Requests going out from our server. The information they gave us are. Block Type: New Ban Time: 2015-10-01 ...
0
votes
0answers
126 views

Is there a program like searchmonkey/Everything that previews images or webms?

On Windows there a nice file search engine called Everything, which is >(unlike find) very fast and (unlike locate) always returns up to date results. AFAIK it works by filling a database from the ...
0
votes
0answers
479 views

Problem accessing robots.txt from search script

I have been using the Perlfect Search Script http://www.perlfect.com/freescripts/search/ for several years on my sites. For reasons unknown it stopped working properly a few months ago. When I run the ...
0
votes
1answer
88 views

Search and replacing strings in a numerical data file

I have a data file I need to edit it is in the form: -8.915602898150751e-05-7.050591991128022e-05-4.361255125222242e-052.309505585477205e-05-2.223040239244275e-051.088544645124330e-011....
0
votes
1answer
162 views

Space removal after a pattern in SED

I have a file instrument.xml bash-4.1$ more instrument.xml <instr instr_id="CPT-2380950-011-001-826" valor_ch="" instr_type="CurrentAccount" instr_name="CPT-2380950-011-001-826" qn_type="1" ...
0
votes
2answers
63 views

Find searches only for the first matching entry

I have to find all directory paths with specific subfolders. The search pattern is as follows: find /foo/*/searched_folder/bar -maxdepth 0 -type d ̶I̶t̶'̶s̶ ̶w̶o̶r̶k̶i̶n̶g̶ ̶p̶r̶e̶t̶t̶y̶ ̶w̶e̶l̶l̶ ...
0
votes
1answer
24 views

search which other python files invoke a class defined in an given pythonfile

There is a set of python files in a folder. One file includes a class definition, for instance Class DataGen: How can I know which python file in this folder use this Class? Are there any linux ...
-1
votes
1answer
165 views

How to write a Shell Script to find Inputs/Output of a Function in a given file

I need to write a shell script which tells us all function names in a given file and their inputs/outputs For Example consider the below file which has 2 functions. Each function has their input and ...
-1
votes
1answer
79 views

finding specific directories

I need to find all directories that begin with dirD in the directory /dirA/dirB/dirC. Basically, dirD*. So far I tried: find . -type d -name "dirD*" and ls -lrt | grep "^d" | grep "dirD*" Now I'm ...