LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-20-2010, 08:49 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Search Through Server Configs


I'm stuck right now trying to find out why I can't get Samba to authenticate from Active Directory and was looking for a way to search through hundreds of files / folders on my server starting at /srv/ibm/clearcase/ for a specific value string like "mydomain.tld". I don't know how long this query could take but I'm searching it manually using cat after I cd into the directory and it's driving me nuts. There has to be a better way as a Linux Administrator I can search through many sub-folders and files from the parent directory for a specific phrase. I've never used Sed or Awk but I think those are useful tools. I just don't know how to start the search command using them or if they even will do what I want for that matter.

Any examples or recommendations are beyond appreciated!
 
Old 12-20-2010, 10:05 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
grep -r mydomain.tld /srv/ibm/clearcase/

-r is for recursive searching. See "man grep" for more options.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to make a client to search for the server??? vigneshinbox Programming 2 04-14-2009 09:47 AM
Document search server netlogic Linux - Server 1 03-18-2008 05:15 PM
how to use linux server to backup cisco configs steve-0 Linux - Networking 11 06-28-2007 12:22 PM
search server files using webpage webreake Linux - Server 2 04-20-2007 12:37 PM
FreeBSD Server Time Configs??? unixfreak *BSD 1 07-26-2004 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration