|
From: | Jian Wang |
Subject: | Re: Excluding files with grep |
Date: | Wed, 1 Nov 2006 09:21:07 +0800 |
I don't know clearly what your problem is. Grep has an option '--exclude' used to exclude files. Is it what you want? On 10/31/06, DarkRick < address@hidden> wrote:
Hi... I'm new in grep world... I have a set of files, a.txt, b.txt, c.txt, but when I open one of those (suppose c.txt) it's damaged and it's content is full of 00 in hexadecimal format. I'm trying to list all files excluding the damaged one, but the only solution that I could find didn't work. Any ideas? I've tried this command first, "$ grep ^[1-9A-Za-z] *" but it shows files that has content... then, I tried with find, but it listed all the files.
[Prev in Thread] | Current Thread | [Next in Thread] |