General :: Ubuntu 10.10 - How To Search For Files
Feb 1, 2011
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?
View 7 Replies
ADVERTISEMENT
Aug 24, 2010
My Linux system has an NTFS disk attached to it. How can I search for all *.txt files on the NTFS partition using Linux?
View 2 Replies
View Related
Jul 4, 2010
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.
View 3 Replies
View Related
Aug 31, 2009
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?
View 3 Replies
View Related
Mar 30, 2011
I am using find some_dir -name "*.some_ext" | xargs -l10 grep "some_expr"
to find files in folder, but I just want to display the file name but not all file content. Any solution?
View 2 Replies
View Related
Dec 2, 2010
How can I search files modified in a specific day?
View 2 Replies
View Related
Oct 28, 2009
find out a command to search among all *.dat files in a certain path (including subdirectories) looking for the following text in them:
Code:
--------------------------------------------------------------------------------
Elements with small area
Element Adjusted nodes
--------- --------------
16294 NO
17889 NO
and getting the list of elements with small area printed in a file "ErrorEl.txt". The output should have this form:
"/path/01/A.dat
bad-el#01
bad-el#02
[code]....
I know already how to find out the dat files containg a certain string
Code:
c=/path/
grep -R --include="*.dat" "Elements with small area" $c | cut -d: -f1>> ErrorEl.txt
but I don't know then how to get the element numbers(16294 and 17889 in the example above)
View 11 Replies
View Related
Oct 9, 2010
I'm trying to use Bash to search some directories for a word in one of documents. I've tried:
Code:
$ grep -R Brzeninski /media/disk-1/Dual_Data/
but It never returned a prompt, and i'm not sure what grep means or does.
View 1 Replies
View Related
Feb 3, 2011
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.
View 2 Replies
View Related
Sep 3, 2010
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]
View 4 Replies
View Related
Jul 13, 2010
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.
View 13 Replies
View Related
Oct 10, 2009
i am using openSUSE 10.3 & like to use power of terminal to do tasks.I want to search all files containing word 'echo' in given folder.What should be command.
View 14 Replies
View Related
Jan 18, 2011
How do I recursively generate a text file which has a list of all files on my server which contain a specific string anywhere in the files?
I know the following command can be used to replace a string recursively
find /var/www -type f -print0 | xargs -0 sed -i 's/old string/new string/g'
I do not want to replace the string, I just want a list of all files which contain the string.
View 4 Replies
View Related
Apr 18, 2011
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.
View 3 Replies
View Related
Mar 17, 2010
i want such a shell script or single line command to delete all the files with extension specified in script i have bash !! ex... delete all files of extension .obj
View 4 Replies
View Related
Jul 20, 2011
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.
View 3 Replies
View Related
Feb 21, 2010
I need to search in "/" and all subdirectories, all files greather than 30 MB.
View 5 Replies
View Related
Apr 21, 2010
Currently, when I'm searching text in files of my PHP project, I use this line :
Code:
grep -r 'myTextToFind' *
But now, I would like to search only in ".lang" files. How can I do that ?
View 7 Replies
View Related
Dec 19, 2010
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.
View 5 Replies
View Related
Jan 20, 2010
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.
View 1 Replies
View Related
Mar 5, 2010
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.
View 9 Replies
View Related
May 11, 2010
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.
View 6 Replies
View Related
Nov 28, 2010
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?
View 9 Replies
View Related
Dec 8, 2010
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?
View 2 Replies
View Related
Dec 29, 2010
What's the best software people know of for searching for files in Ubuntu?
View 9 Replies
View Related
Apr 20, 2011
My Search option under Places is not available. Earlier it was available but today when I checked its not there. How to restore it.
View 1 Replies
View Related
May 8, 2011
any utility to search for a file of a particular extension like search for all .txt files only
View 1 Replies
View Related
Feb 25, 2010
I would like to search for a term within a batch of text files and copy the files containing that term to a folder.
I've read the man pages for Grep, Ack-grep and looked through nautilus, dolphin, midnight commander as well as tried beagle, tracker and google desktop (and looked throught these forums).
I can do this function easily with xp's wagging dog in the Windows search, but would like to find a way in Linux.
View 5 Replies
View Related
Sep 14, 2010
I want to use the terminal to search for all files (also the hidden ones) who are not of a specified type.
For example; I want to find all files that do not end with *.txt.
How do I do this?
View 9 Replies
View Related
Sep 29, 2010
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
View 2 Replies
View Related