Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 2002 22:31:22 -0500 (EST)
From:      Fuzzy <fuzzy@pooh.ASARian.org>
To:        Kurt Bigler <kkb@breathhost.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Argument list too long: limitation in grep? bash? FreeBSD?
Message-ID:  <Pine.BSF.4.44.0212242229490.13106-100000@pooh.ASARian.org>
In-Reply-To: <BA2E2A0E.594F%kkb@breathhost.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On Tue, 24 Dec 2002, Kurt Bigler wrote:

> The success of the second item maybe gives a clue how to approach the first.
> Maybe try something like this:
>
>     ls | grep .html > temp
>
>     edit temp to insert "grep " at the beginning of each line
>         e.g. in vi use
>             :%s/^/grep __FILE__ /
>
> Now temp contains bunch of lines like:
>
>     grep __FILE__ file1.html
>     grep __FILE__ file2.html
>     grep __FILE__ file3.html
>
> Then chmod +x temp and execute it or use temp as input to your desired
> shell.
>


>     ls | grep .html > temp
>
>     edit temp to insert "grep " at the beginning of each line
>         e.g. in vi use
>             :%s/^/grep __FILE__ /
>

ls | grep .html | sed 's/^/grep __FILE__/g' > temp

maybe?




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.44.0212242229490.13106-100000>