bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep should have option to skip FIFOs


From: Stephane Chazelas
Subject: Re: grep should have option to skip FIFOs
Date: Thu, 13 Jan 2005 08:31:35 +0000
User-agent: Mutt/1.5.6i

On Wed, Jan 12, 2005 at 02:19:19PM -0600, Gerd Knops wrote:
> When using 'grep -r', grep 'hangs' when encountering a FIFO. Grep 
> should probably skip those, or at least offer and option to skip them.
[...]

Already there.

  -D, --devices=ACTION      how to handle devices, FIFOs and sockets
                            ACTION is 'read' or 'skip'

Also note zsh globbing:

grep pattern **/*.(c|cpp|java|h|hpp)(^p)

(^p) to exclude fifos (pipes).
(.) instead to have only regular files
(-.) instead to have only regular files and symlinks to regular
files
***/ instead of **/ to follow symlinks while descending the dir
tree.

-- 
Stéphane





reply via email to

[Prev in Thread] Current Thread [Next in Thread]