Skip to main content

All Questions

Tagged with
-1 votes
1 answer
45 views

I can't grep some inputrc string

bind -p |grep -E "\\e.\":" work but bind -p |grep -E "\\e\\C-.\":" don't work I tried a lot of combination
user3634569's user avatar
6 votes
1 answer
14k views

Grep a list of strings [closed]

I have a multiple strings that I want to find them in a list of files that are in a same folder. So, I want to put all the strings in a sort of list and then apply the command: grep -l string *,so I ...
Luciano Muratore's user avatar
0 votes
1 answer
2k views

Finding a string in multiple folders that are in the same directory

I have a directory A that has multiple folders, and I want to find a string in those folders. How can I do it? I have tried grep -rw string * in A, but it takes a lot of time.
Luciano Muratore's user avatar
1 vote
2 answers
86 views

I need to find a value in file between >STRING<

I have a file: example here: <hello>TestFile</hello> <test>2018-04-30</test> <greetings>mycomputer</greetings> **<Iwanthis>6.1.0</Iwanthis&...
Mike Smith's user avatar
2 votes
1 answer
223 views

How can I use sed to snip a line off of a string?

I'm writing a script to display the domain registrar info and I'm trying to snip off a few lines from what I already have I currently have it grabbing all the indented text from a whois. Now I'm ...
Egrodo's user avatar
  • 207
1 vote
2 answers
2k views

How can I add a filter to my grep script to NOT include a string?

I'm working on a script that will separate the Registrar information from a domains whois. So far it's working enough but there are a few things that I want to remove in order for it to be a bit ...
Egrodo's user avatar
  • 207
4 votes
3 answers
13k views

How can I insert the contents of a file into a string in bash

I would like to append the contents of a multi-line text file after a particular line in a string. For example, if the file file.txt contains line 1 line 2 I'd like do so something like printf "...
William Everett's user avatar
14 votes
6 answers
44k views

bash find lines starting with string

I have a bunch of files and I want to find which one contains sequential lines starting with a certain string. For example for the following file : Aaaaaaaaaaaa Baaaaaaaaaaa Cxxxxxxxxx Cyyyyyyyyy ...
Jérémie's user avatar
  • 153
3 votes
4 answers
5k views

Extracting text from a text file in bash

I have a large text file that is all one line. In the text are several sections that looks like foo=12345 and I need to extract them all as separate lines, ignoring the rest of the file. For example:...
Roger Gilbrat's user avatar