buggrep - Bugs: bug #23401, Add option to skip symlinks

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #23401: Add option to skip symlinks

Submitted by:  Victor Porton <porton>
Submitted on:  Wed 28 May 2008 01:17:31 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sun 01 Jun 2008 04:21:34 AM UTC, comment #1:

> I suggest to add option which if specified in addition to -r would prevent
> grep from processing symlinks.
> It is a headache that "grep -r /etc/" processes all symlinks in this folder.


This is really a better case to use find.

find /etc -type f -exec grep PATTERN {} +

That command already provides this functionality, is standard, and works with all of the utilities. Adding all of 'find's behavior to grep is undesirable duplication.

Bob Proulx <rwp>
Wed 28 May 2008 01:17:31 AM UTC, original submission:

I suggest to add option which if specified in addition to -r would prevent grep from processing symlinks.

It is a headache that "grep -r /etc/" processes all symlinks in this folder.

Victor Porton <porton>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rwp (Posted a comment)
  • -unavailable- added by porton (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter 421 here (basic anti-spam test):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup