General :: C++ - Where Does The Preprocessor Search For .h Files

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


ADVERTISEMENT

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

General :: Search For String In New Files?

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

General :: Search Files Modified In A Specific Day?

Dec 2, 2010

How can I search files modified in a specific day?

View 2 Replies View Related

General :: Recursive String-search In Files?

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

General :: Word Search In Files Using Bash?

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

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

General :: Search For Text Strings In Multiple PHP Files?

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

General :: Search In Files Text That Is One-byte Encoding?

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

General :: Search And Replace Line In Multiple Files?

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

General :: Search Word In Group Of Files Using Command?

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

General :: Recursive Search For Files That Hold Some Specific Text?

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

General :: Ubuntu - Search Text In Files And Display File Name?

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

General :: Locate And Change All The Search.php Files Permissions To 644 In One Shot?

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

General :: Shell Script To Search For Files Of Specific Extension And Delete Them All?

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

General :: Configure: Error: C++ Preprocessor "/lib/cpp" Fails Sanity Check

Jan 1, 2011

when trying to install a tarball i am getting the following error when configuring:

configure: error: in `/home/server/tazzed/mkahawa-printer-0.0.1':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

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

Programming :: C Preprocessor Fails Sanity Check?

Jan 31, 2010

Recently, every time I try to compile an app from its source code, after issuing the ./configure command I get this message:configure: error: C preprocessor "/lib/cpp" fails sanity checkSee `config.log' for more details.I check /lib/cpp but there is not directory named /cpp under /libthis problem occurs on all source packages.

View 3 Replies View Related

Programming :: Fexec-charset For Preprocessor Or For C Compiler?

Dec 24, 2010

I'm reading about GNU CPP(GNU C preprocessor). In the CPP manual -> 1.1 Character sets:

Code:
After preprocessing is complete, string and character constants are converted again, into the execution character set. This character set is under control of the user; the default is UTF-8, matching the source character set. I think "under control of the user" means to use the option -fexec-charset=, right? And in the above part, it says pretty clear: "After preprocessing is complete", so the job -- "string and character constants are converted again, into the execution character set" -- should be done by the C compiler(compilation proper), not GNU CPP. Then the option -fexec-charset= should be an option controlling the C compiler, not the preprocessor. But in the GCC manual, this option is listed in the "3.11 Options Controlling the Preprocessor". I don't understand this, If this option is an option controlling the preprocessor, it conflicts with the CPP manual. How to understand this?

View 4 Replies View Related

General :: Search In "/" And All Subdirectories - All Files Greater Than 30 MB

Feb 21, 2010

I need to search in "/" and all subdirectories, all files greather than 30 MB.

View 5 Replies View Related

Software :: C Preprocessor /lib/cpp Fails Sanity Check - Every Single Time

Aug 3, 2010

I have no idea what I've done but I can't compile from source anymore.
VectorLinux standard 6.0

everything I try to compile fails at ./configure with an error :

Quote:

The content of config.log: (kinda long)

Quote:

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.

It was created by mpc configure 0.8.2, which was generated by GNU Autoconf 2.65.

Invocation command line was:

configure: exit 1

I was intending to recompile gcc from source instead of the the one came with the distro, but to do so I need MPC, which I can't compile.

View 18 Replies View Related

Programming :: C++ Multiple Variable Declaration Error - Even After I Set #ifndef Preprocessor

Jan 18, 2011

Why do I still get mutiple definition of "_my_variable" error even after I used the #ifndef preprocessor in my hpp file?

This is my scenario
I have:
1. A.cpp (including X.hpp)
2. B.cpp (including X.hpp)
3. X.hpp

[Code]...

View 4 Replies View Related

General :: Search Text In All Text Files Of All The Sub-directories?

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

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

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

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

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







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