I opened a file using the more pager,i was trying to find a string in this file using / as shown in the figure below,but it is saying that pattern not found even though the string i have searched is ...
I want to check the absence of the following sequence of characters $$$$$ (i.e., 5 dollar signs) in a json file using grep as it has been used instead of comma to separate fields and I need to make ...
I have a file (test.txt) that contains string such as:
I have a file with the following input. The numbers separated by dots represents addresses. Any number in address can be one or more digits as follows:
I have a file with content similar to:
I want to search for lines with subdomains. I used this command:
grep -e ...
I want to search a file to check for patterns like this:
text1,text2,[1.2.3,3.4.5,6.7.8,etc] exist. The number of commas inside the square brackets is undefined.
I tried the following command but it ...
I have a text file. That looks like:
www.ac.com has address 220.127.116.11 www.ac.com is an alias for ac.com. www.ac.com is an alias for ac.com.
www.ba.net is an alias for www-bn.gs.ba.com. www-bn.gs.ba....
I have a large file that contains domain names in the form of:
I want to extract main domain names (no sub domains) with top level domain name ...
I would like to replace a given string in a text file into by another, but with one extra detail.
If the file content's is :
any text here
I want to find text inside a string Pattern from a data file and extract them in a text list using shell or AppleScript.
An example inside XML:
node file="source_files/ (var1) .mp3"
Another example ...
I have an HTML file on a Linux server that contains a long list of links. I am trying to edit this file as follows.
Find original occurrences of this type: http://www.test.org/name
Replace them with: ...
I have a file containing population information for a bunch of towns. I have another file that is a list of the names of a subset of those towns. I want to select the population information from the ...
I have a directory named dir1 which has about 800 sub-directories named disp-001, disp-002, ... disp-800. I need to find sub-directories that
either do not contain a file stdout or
if they do, that ...
I want to find the last index of any character in the [abc] set in the abcabc string but the search should start from the end of the string:
" Returns the 0th index but I want the 5th.
find -type f -print0 | xargs -0 -n 10 grep -i searchstring
to search recursively for a string. But it also gives me error messages like "permission denied". How can I avoid such error messages ...