bug-bash
[Top][All Lists]
Advanced

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

Re: Spaces in args, escapes, and command substitution


From: Bob Proulx
Subject: Re: Spaces in args, escapes, and command substitution
Date: Sun, 29 Oct 2006 10:07:13 -0700
User-agent: Mutt/1.5.9i

address@hidden wrote:
> But, given that find is clever enough to assemble arguments containing
> spaces into an arglist and feeding them to vi, why can't bash?

I find the 'find' solution to be one that I am more attracted to but
if you put it that way I will note that bash has the capabilities.

  grep --null -l PATTERN * | while read -d $'\0' f; do vi "$f"; done

Or:

  grep --null -l PATTERN * | while read -d '' f; do vi "$f"; done

Bob




reply via email to

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