find a file or content by name recursively similar to the ms-windows function search with Linux? I can do find . | grep test.html suspecting it's not the best.
For instance, running find . | grep terms.htmlgives my expected result while locate terms.html doesn't even though locate gets updated db - it might have to do with that it's an USB stick the file is on?
I would like a command or a bash script that search all files in all sub, modified last 12 hours, in /var/logs and that contains "alfa" or "bravo". The output should be filename of the file or files that contains that.
i have finished installing mysql, howeve some of the files were missing, like mysql.h. i have downloaded a DEV version which has all the files im looking for, however when i add my c++ file to the directory that they are in, it still does not run because it cannot find the mysql.h where does the compiler look for these files, or where should i put them?
Long story short, I got a folder with nearly 800,000 php files. I would like to search each file for a string and if it exists in that file, the file gets copied to another directory. Is this possible from the terminal? So far I got: grep -i -n -r 'ppr-1792' * | cp $1 move_to_here
But this obviously doesn't work. $1 needs to be the file name that contains matching text.
how to search in files text that is one-byte encoding? places - search for files in gnome in ubuntu searches only utf-8 text.i know one way: install wine and total commander, then search with it. what are better ways?[URL]
Hello, I need some help searching through multiple files, finding a line and replacing that line. The line I am searching for is:
password key ******* 1222554
ultimately I want to be able to delete the numbers after the asterisks . my thoughts are to create a script that will search for the line password key ******* and delete it then replace it with password key ******* my files are located in /opt and they are all txt files.
I work with this travel company that host sites for different agents. They have ALL the sites in one directory and each site has its own search.php file. How can I locate, and change all the search.php files permissions to 644 in one shot? Is this possible maybe with the find command? I read the man page for this but I am not sure how to write out the command.
I have noticed that the files and folders search in Unity, only shows up those files which have been amended (or possibly just opened) since the install.
i was wondering if there was a way i could have the search index (or something vaguely equivalent) all the files on my machine. This is especially important given that i reinstall the OS every six months on a new distribution cycle, copying all my old files across.
Without being able to see my old files the search is pretty much reduced to a recent history search.
Is there any way, either with something included or with a program that can be set up to search for files in Ubuntu? I need something like the search for files or folders that was available in Windoze 98 and 2000. I have tried the built in search under "places" and I have found no way to get it to search a full drive or all drives.
Recently one of the worm is spread in our network & so many unwated files are getting copied on our ubuntu file server like comment.htt, desktop.ini, winfile.exe Now we have clean that worm from our network but few files are remained on ubuntu server as well as in backup folders and i want to search those files and delete it.
I need the ability to search for file content in documents and spreadsheets and I need to be able to do this from the folder level.When I hover my mouse over the "search" button in the file browser toolbar, it says that it can "locate documents and folders on this computer by name or content," but that is not the case. It can only locate documents and folders by name. Is there something I need to download that will allow me to do this? I have nautilus file manager.
I recently used scalpel to recover .doc files. I only need to find just one file, but scalpel retrieved thousands and thousands of them, all titled after a sequence of numbers. If I could only search within them all for a single word I'd be able to identify the ones to check out vs. the duds immediately.
How can I search for one 6 letter word throughout all of my Ubuntu files?
Sounds simple but I've not found what I'm looking for. The bottom line is that I am wanting to clean up a file association in mime. I would have had more success if I were searching for this under XP. I must be doing something wrong.
Since I trialled a commercial company's map product under Wine somewhere in my system is still their name. Any gpx file I choose to download and the company's name appears in properties. Ggx files are also associated with Wine whilst an untainted PC in the house just has "Browse" as an "open with" option.
First things first, how do I find and delete this commercial company's name totally from any part of my system? How do I find their name in one or more of my files?
I'm trying to look through a big folder of air photos to see if there are some world files that have duplicate coordinates. I want to find *.jgw files that have 123 in line 5 and 456 in line 6. I first thought grep could do this for me but grep 123 *.jgw|grep 456 finds only files where 123 and 456 are on the same line. Is there a sed trick for this?
When I use "Search for Files" in Ubuntu (9.1 and 10.04), sometimes the computer continues to search after I've double clicked one of the results, and it noticeably slows the launching of that file unless I immediately click "stop" on the search window