LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 04-14-2006, 10:34 PM   #1
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Rep: Reputation: 30
grep in Mepis 6.0A


Not that I've ever needed to use grep before but I'm wondering if it is broken in 6.0A.

I have about 900 files of various types in a directory. I want to find one specific word and I know it is in there somewhere. I open Konsole and type:

mememe@2[~]$ grep -i thisstring /home/mememe/dir/*.*

All that happens is that the cursor returns to the prompt string with no output. From the man pages I think it is right but I don't know. I apt-get agrep too but it doesn't do any better.

Can anyone see what I'm doing wrong and help me out? Thanks.
 
Old 04-15-2006, 01:22 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,318

Rep: Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172Reputation: 4172
Change "*.*" to "*"
 
Old 04-15-2006, 06:43 AM   #3
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Original Poster
Rep: Reputation: 30
Meh. Same thing. One thing I did think of just now was to try it exactly as the example showed with:

mememe@2[~]$ grep -i thisstring /etc/*

and it did return filenames as expected. That means the home dir path is faulty in some way as I typed it I guess. Does anyone know what the trick is to get it to work with the home directory like it works with /etc/?

Last edited by bluesman2333; 04-15-2006 at 11:34 AM.
 
Old 04-16-2006, 04:24 PM   #4
bluesman2333
Member
 
Registered: Dec 2003
Location: Phoenix, Az.
Distribution: Xubuntu Edgy
Posts: 330

Original Poster
Rep: Reputation: 30
Ah! Problem solved (in a way).

I used mememe@2[~]$ grep -i -c thisstring /home/mememe/*

so that all files are shown even if they don't contain the string. The problem I was having is that for some reason grep chokes on scripts like cgi, pl and php. The string can be in there but grep won't know it. Thanks for all your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
MEPIS 6.0: MEPIS-Dapper Collaboration is out for testing-subscribers only smiley_lauf MEPIS 9 05-03-2006 03:43 PM
Networking Problem in Mepis...Help from Mepis 3.4.3 users..Please depam Linux - Software 2 03-25-2006 11:12 AM
Pro Mepis vs. Simply Mepis, What is the difference? pbibaud MEPIS 1 05-25-2005 09:36 PM
ps -ef|grep -v root|grep apache<<result maelstrombob Linux - Newbie 1 09-24-2003 12:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 10:14 AM.

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