Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Arglist too long...mv'ed crazy



On Sun, Apr 01, 2007 at 01:47:10PM -0400, Clint Adams wrote:
> > >   print -0 ../../cur/* | xargs -0 mv --target-directory=/back/up/folder
> > > 
> > > (Note xargs, not zargs, in the latter case.)
> > 
> > My zsh doesn't seem to have a -0 print option.
> > 
> > Maybe print -f '%s\0' ...
> 
> "print -N" is misspelled up there.

print -rN

then

or

printf '%s\0'

and that's even portable outside of zsh.

-- 
Stéphane



Messages sorted by: Reverse Date, Date, Thread, Author