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

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

Re: grep


From: Ralf Wildenhues
Subject: Re: grep
Date: Sat, 25 Apr 2009 10:12:26 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

* Chris Jones wrote on Sat, Apr 25, 2009 at 10:02:39AM CEST:
> 
> How do I grep a bunch of documents for all occurrences of "words" such
> as '.bashrc', '.bash-history' etc. ..?

With extended regular expressions that should always be possible,
  grep -E '(^|[^[:alpha:]0-9_])(.bashrc|.bash-history)($|[^[:alpha:]0-9_])'

Cheers,
Ralf




reply via email to

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