Re: piping find to zip -- with spaces in path

2011-01-14 Thread Dan B.
Bob Proulx wrote: Dan B. wrote: Bob Proulx wrote: So as you can see whitespace isn't safe to use in URLs. This is basically the same as for Unix filenames. They're not quite the same: Not quite the same is basically the same here. :-) Okay. They're not the same. So they're not basical

Re: piping find to zip -- with spaces in path

2011-01-13 Thread Bob Proulx
Dan B. wrote: > Bob Proulx wrote: > >So as you can see whitespace isn't safe to use in URLs. This is > >basically the same as for Unix filenames. > > They're not quite the same: Not quite the same is basically the same here. :-) The question of the topic was: ... what about urls? They come

Re: piping find to zip -- with spaces in path

2011-01-13 Thread Dan B.
Bob Proulx wrote: Bob Proulx wrote: ... So as you can see whitespace isn't safe to use in URLs. This is basically the same as for Unix filenames. They're not quite the same: In URIs, it's not that whitespace "isn't safe to use"; it's simply that whitespace is not allowed, period. (Yes, en

Re: Re: piping find to zip -- with spaces in path

2011-01-12 Thread Blair Mason
>Jan 12, 2011 02:02:19 PM, b...@proulx.com wrote:>Bob Proulx wrote:>> Real Unix(TM) users never put [^[:ascii:]] characters in file names.>>That is what I get for attemping humor on a technical list! Sure>spaces and other whitespace are ASCII and so the attempt inevitably>falls into a syntactical

Re: piping find to zip -- with spaces in path

2011-01-12 Thread Bob Proulx
Bob Proulx wrote: > Real Unix(TM) users never put [^[:ascii:]] characters in file names. That is what I get for attemping humor on a technical list! Sure spaces and other whitespace are ASCII and so the attempt inevitably falls into a syntactical correction of my blown punch line. Oh the humanit

Re: piping find to zip -- with spaces in path

2011-01-12 Thread Rob Owens
On Tue, Jan 11, 2011 at 12:56:35PM +1100, Andrew McGlashan wrote: > Hi Rob, > > Rob Owens wrote: >> I tried this and it successfully creates myfile.zip: >> >> find ./ -iname "*.jpg" -print | zip myfile -@ >> >> But it fails if there are spaces in the path or filename. How can I >> make it work wit

Re: piping find to zip -- with spaces in path

2011-01-12 Thread Robert Blair Mason Jr.
On Tue, 11 Jan 2011 22:02:48 -0500 Doug wrote: > On 01/11/2011 08:46 PM, Robert Blair Mason Jr. wrote: > > On Tue, 11 Jan 2011 14:53:33 -0700 > > Bob Proulx wrote: > > > >> Robert Blair Mason Jr. wrote: > >>> Rob Owens wrote: > I tried this and it successfully creates myfile.zip: > >

Re: piping find to zip -- with spaces in path

2011-01-11 Thread Doug
On 01/11/2011 08:46 PM, Robert Blair Mason Jr. wrote: On Tue, 11 Jan 2011 14:53:33 -0700 Bob Proulx wrote: Robert Blair Mason Jr. wrote: Rob Owens wrote: I tried this and it successfully creates myfile.zip: find ./ -iname "*.jpg" -print | zip myfile -@ But it fails if there are spaces in

Re: piping find to zip -- with spaces in path

2011-01-11 Thread Robert Blair Mason Jr.
On Tue, 11 Jan 2011 14:53:33 -0700 Bob Proulx wrote: > Robert Blair Mason Jr. wrote: > > Rob Owens wrote: > > > I tried this and it successfully creates myfile.zip: > > > > > > find ./ -iname "*.jpg" -print | zip myfile -@ > > > > > > But it fails if there are spaces in the path or filename.

Re: piping find to zip -- with spaces in path

2011-01-11 Thread Andrew McGlashan
Hi, Andrew McGlashan wrote: Rob Owens wrote: I tried this and it successfully creates myfile.zip: find ./ -iname "*.jpg" -print | zip myfile -@ But it fails if there are spaces in the path or filename. How can I make it work with spaces? Does this work: find ./ -iname "*.jpg" -print0 | xa

Re: piping find to zip -- with spaces in path

2011-01-11 Thread Bob Proulx
Robert Blair Mason Jr. wrote: > Rob Owens wrote: > > I tried this and it successfully creates myfile.zip: > > > > find ./ -iname "*.jpg" -print | zip myfile -@ > > > > But it fails if there are spaces in the path or filename. How can I > > make it work with spaces? > > I think the best way wou

Re: piping find to zip -- with spaces in path

2011-01-11 Thread Robert Blair Mason Jr.
On Mon, 10 Jan 2011 20:50:19 -0500 Rob Owens wrote: > I tried this and it successfully creates myfile.zip: > > find ./ -iname "*.jpg" -print | zip myfile -@ > > But it fails if there are spaces in the path or filename. How can I > make it work with spaces? > > Thanks > > -Rob > I think the

Re: piping find to zip -- with spaces in path

2011-01-10 Thread Andrew McGlashan
Hi Rob, Rob Owens wrote: I tried this and it successfully creates myfile.zip: find ./ -iname "*.jpg" -print | zip myfile -@ But it fails if there are spaces in the path or filename. How can I make it work with spaces? Does this work: find ./ -iname "*.jpg" -print0 | xargs -0 zip myfile -@

piping find to zip -- with spaces in path

2011-01-10 Thread Rob Owens
I tried this and it successfully creates myfile.zip: find ./ -iname "*.jpg" -print | zip myfile -@ But it fails if there are spaces in the path or filename. How can I make it work with spaces? Thanks -Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "u