Re: How to find the definition of a string in /usr/include ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2012-11-03 at 20:38 -0600, reg@xxxxxxx wrote:
> How do I find the definition of a string in /usr/include?
> 
> OK, there has got to be a better way to do this than with find and
> grep (which isnt working).

What do you mean they aren't working?

> BUT how does one find the definition
> of a string in /usr/include ???
> 
> In particular, I KNOW that month is defined SOMEWHERE, but Im
> not finding in in the obvious (to me) places. 
> 
> So how do I find 'Mo' or perhaps better yet 'Mo[' in /usr incude?

So which is it? month? MO? Mo[?

This finds definitions that include "month" (case-independently),
provided that the word is on the same line as the #define:

find /usr/include -type f|xargs grep -i "#[[:space:]]*define.*month"

poc

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux