New answers tagged search
Go to: Settings | Search | Contacts | OFF
Yes, once you disable it in the settings it clears the cache specifically for the Activities Overview search, once you have re-enabled it you will need to wait a while for it to re-index all your files and folders etc.
For anybody else using VMware: Go to "Virtual Machine" -> "Settings" -> "Keyboard & mouse" -> "Edit Profile..." for "Mac Profile" -> "Mac Host Shortcuts" -> Check "Enable Mac OS Host Keyboard Shortcuts" Tested using VMWare v7.1.3 and Ubuntu 14.04
Single grep, grep -P '^(?!.*?141\.8\.83\.213).*\bGET\b' file DEMO
Awk allows for logical operators in regex , so you can say match GET and also those lines that don't contain ip awk '/GET/&&!/141\.8\.83\.213/' log. txt
Use two greps: grep "GET" /home/tsec/prototype/logs/glastopf.log | grep -vF 126.96.36.199 | ... From man grep: -F Match using fixed strings. Treat each pattern specified as a string instead of a regular expression. If an input line contains any of the patterns as a contiguous sequence of bytes, the line shall be matched. ...
TL;DR Add -iname "*.log" after / to your find command. Refer to man page for more info A more detailed answer The task at hand is the following: List files that match pattern *.log Execute grep per each file to find whether or not it contains a specific string. List the filename that has a match on the stdout The example of how that can be ...
It seems you forgot the -name keyword : find / -name "*partname*"
Try with locate command. Open terminal and write: locate <partname>
For a command line option, "silver searcher" is in my opinion simply the best. Far faster than find and awk, and has simpler usage: ag <path> Install from ubuntu 14.04 sudo apt-get install silversearcher-ag Take a look on some speed comparisons against find and awk https://github.com/ggreer/the_silver_searcher
Top 50 recent answers are included