Ubuntu :: Output Files Containing Search Term?

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


ADVERTISEMENT

Ubuntu :: Piping Command Output Into Grep As Search Term?

Nov 11, 2010

I want to pipe the output of a command into grep as the search TERM, rather than the text to be searched, like this for example

Code:

cat /var/log/auth.log | grep date "&b &d"

so that I only see the lines in auth.log for the current day...but obviously that line doesn't work.... is there a way to do this with grep, or even another command?

View 4 Replies View Related

Ubuntu :: Search For Term In Multiple Files?

Mar 7, 2011

I am trying to search for a term in a bunch of files. Is there a way to do this. I would like to search all the files in a directory and its subdirectories for a specific term.

View 1 Replies View Related

Ubuntu :: Editor Which Can Highlight A Search Term?

Oct 20, 2010

I'm looking for a simple text editor which could highlight all occurrences of search term in the opened text file. This is a feature that I particularly like in the Windows Notepad++ editor where any selected word is automatically highlighted in the rest of the document.

View 5 Replies View Related

Software :: Echo Or Search Through Terminal Output?

Jun 16, 2011

if i will sound stupid but i can't find a command that would echo output of some command. Let's say that i want to echo the third line of ls -a. I know of the tail command but this command starts from behind.

View 4 Replies View Related

Programming :: How To Transfer Search Output Between Two Server

May 25, 2011

I want to search for 1 file (say test.txt) on first server and all the output of this search to be greped as per my requirement and then transfered on the second server at the same location where they were on first server.

E.g.
output of search of file (test.txt) >> output.txt
/tmp/test.txt
/home/cpan/test.txt
/opt/cpanel/test.txt

Now I want to grep this output to only related to cpanel,
for f in 'cat output.txt'
echo $f | grep "cpanel"
if [ $? -eq 0 ]
then do scp.
But I am bit confused here, as in how to use scp command here.
scp $f root@second_server:/$f ?

View 3 Replies View Related

Programming :: Used The Output Of Search To Copy In Another Destination?

Dec 20, 2010

i want to used the output of search to copy in another destination examlpe. fine /home/* mtime -1 i want to used the output of the find command to copy an another destination

View 4 Replies View Related

Ubuntu Installation :: Cp: Cannot Stat '/boot/grub/search.mod': Input/output Error?

Jan 30, 2010

This is what I get when following the instructions to fix grub. I type in "grub-install /dev/sda" and that's the error I get.I'm trying to put Ubuntu or Mint on a Dell Mini 9 with 16gb ssd, but no matter what I do I cannot achieve this goal

View 4 Replies View Related

General :: Make Gnome Terminal App Support Output Search?

Oct 2, 2010

Using a default terminal and bash, there is no functionality to search the standard output of commands.

One can gain such functionality using other tools, like emacs shell or screen, but I am wondering why such a useful feature is missing, I do remember a simple C-F used to work in terminals.

Is there a way to make the Gnome terminal app support output search? or is there a better terminal app that support searching output natively?

View 5 Replies View Related

Ubuntu :: Unity Files And Folders Search Doesn't Show 'old' Files?

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

Ubuntu :: How To Search For Files

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

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 View Related

Ubuntu :: How To Search And Remove The Files

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

Ubuntu :: Search For Content In Files?

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

Ubuntu :: Any Way To Search Within Series Of Files?

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

Ubuntu :: Search For Something Inside One Of Files?

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

Ubuntu :: Way To Do A Compound Search Of Some Files?

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

Ubuntu :: Best Software For Search For Files?

Dec 29, 2010

What's the best software people know of for searching for files in Ubuntu?

View 9 Replies View Related

Ubuntu :: Places / Search For Files Not Available

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

Ubuntu :: Search Files Of A Particular Extension?

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

Software :: Making A Bash Script To Read In Different Files And Rename Output Files?

May 7, 2009

Until now i haven't had to dabble with bash scripts.

I have a program that reads in data files. These are named datafile01_R, datafile01_G, datafile01_B, they then increment, so datafile02_R etc i have about 600 of these. the program reads in 3 data sets at a time from each run, so files_01 r, g, and b.

The program then does its magic, and outputs about 40 different files, depending on the file, they gone to folders named R, G, B, psa, or tracking.

The program itself has configuration files to say where the files should gone when analyzed, there is also the config files that reads in the data sets.

At the moment i have to run one set of data, then go in and manually change the input file location, and run again. But, doing this, even though a different data set, the new set overwrites the old set in one of the output folders. So i need a way to increment the output filenames after they are written and before the program is run again with the new data set.

View 1 Replies View Related

Ubuntu :: Use Terminal To Search For All Files Who Are Not Of A Specified Type?

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

Ubuntu :: Search For Files Auto Stop?

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

Ubuntu :: Unity Search For Files Not Working?

May 9, 2011

Is there anything special I need to do to get file searching working in Unity? Currently Search for Files never finds anything in my documents area. I just get "Your Search did not match any files"

View 4 Replies View Related

Ubuntu :: Indexed Search For Files By Filename?

Jun 23, 2011

Is there really no way of having with a GUI an indexed file search by filename (not contents etc) which gives a detailed list? Great big icons as a "result" is no good to me, I want "details" that I can then click on to either open or copy etc. I tried the totally useless "Tracker" and Zeitgeist in my 11.04 is no better. There is a fantastic product in the win environment called everything.exe which does exactly what I want. I cannot be alone in this type of requirement. It has to have a GUI.

View 9 Replies View Related

Programming :: Search The String "Listen" In A Few Files (config Files)?

May 9, 2011

I'm trying to search the string "Listen" in a few files (config files). I madefind /apps/apache* -exec grep -H Listen {} ;but the result list is very long. How i make a "grep -v" whith this command?

View 3 Replies View Related

Software :: How To Search Pdf Files

Jan 11, 2010

With Windows, I can use ifilter in acroread to search pdf content. How about in Linux? Which software can be used to search pdf files without opening them?

View 7 Replies View Related

General :: Ubuntu 10.04 - Search A Ntfs Partition For Files?

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

Ubuntu :: Search Files Containing Text Within Hidden Folder

Mar 6, 2010

I have a hidden folder with a lot of text files in it. I would like to search in this folder for all files containing a given text.The File Browser's" FIND searches only in the file names, not in their contents.The FIND function of Ubuntu does not allow me to search ONLY in the given hidden folder. So, how can I find my files within the hidden folder with the given text within them?

View 7 Replies View Related

Ubuntu :: Is There A Variation Of Grep To Search Files For Keywords

Jul 10, 2010

I know you can use grep to find keywords in filenames, but is there a variation that can enable you to search the content of the files themselves?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved