New answers tagged

1

Go to: Settings | Search | Contacts | OFF


0

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.


0

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


1

Single grep, grep -P '^(?!.*?141\.8\.83\.213).*\bGET\b' file DEMO


2

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


2

Use two greps: grep "GET" /home/tsec/prototype/logs/glastopf.log | grep -vF 141.8.83.213 | ... 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. ...


4

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 ...


1

It seems you forgot the -name keyword : find / -name "*partname*"


1

Try with locate command. Open terminal and write: locate <partname>


0

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