nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

linux command search server for string

This is a discussion on linux command search server for string within the Linux software forums, part of the Linux Getting Started category; Hi! Let us say i wanna search linux server for string. For example find all files having word or string ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-25-2006, 03:56 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
My distro: Ubuntu
Posts: 33
Rep Power: 0
chimu is an unknown quantity at this point
Default linux command search server for string

Hi!

Let us say i wanna search linux server for string. For example find all files having word or string demo or ip 192.168.1.100

How do i search server for string? Find command is not working ...

TIA
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2006, 12:32 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,034
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Use grep command.

Code:
grep -R "string" /directory
Search ip 192.168.1.100 in /etc directory
Code:
grep -R "192.168.1.100" /et
c
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-26-2006, 01:40 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
My distro: Ubuntu
Posts: 33
Rep Power: 0
chimu is an unknown quantity at this point
Default

thanks da
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
word search in file chandanperl Coding in General 2 03-11-2008 11:16 AM
pattern search with numbers mercuryshipz Coding in General 0 02-15-2008 12:16 AM
Search Pattern And Arrays mercuryshipz Coding in General 1 02-11-2008 03:26 PM
split files by specifying a string (bash shell) vikas027 Shell scripting 4 11-01-2007 05:22 PM
example for string connect to a command. ryan Shell scripting 2 02-22-2005 02:05 PM


All times are GMT +5.5. The time now is 05:08 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36