All Questions
9 questions
-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
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 ...
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.
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&...
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 ...
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 ...
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 "...
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
...
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:...