You are not logged in.

#1 2015-06-29 10:57:26

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Search for and in conf-files [SOLVED]

I'd like to have a "global" search function in Xfce that searches both filename and contents of files, including .conf and all system files by choice. e.g. if i search for ""Option "GLXVBlank" "true"" it will show all files that contain that line. Like this example would state "/etc/X11/xorg.conf.d/20-nouveau.conf" as answer.
Is there anything that could manage that kind of search in Arch/Xfce?

Last edited by dockland (2015-06-29 11:21:40)


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#2 2015-06-29 11:03:10

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: Search for and in conf-files [SOLVED]

grep -lr Foo /etc

add -i for case-insensitive, see man grep


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#3 2015-06-29 11:21:25

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: Search for and in conf-files [SOLVED]

Thank You a lot. I mark thread as solved.


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

#4 2015-06-29 11:33:48

progandy
Member
Registered: 2012-05-17
Posts: 5,201

Re: Search for and in conf-files [SOLVED]

If grep is too slow, you might want to use an indexing search engine
https://wiki.archlinux.org/index.php/Fi … ch_engines


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2015-06-29 11:41:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Search for and in conf-files [SOLVED]

Offline

#6 2015-06-29 14:57:35

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,413
Website

Re: Search for and in conf-files [SOLVED]


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

Board footer

Powered by FluxBB