Thanks Doc.  It is about time I groked xargs.  And thanks for the pointer
to that book.  Finding the time and $$ to buy it are another difficult
task.

Meantime, can anyone out there tell me how to address the cdrom drive on
an ibook.  E.g. I want to do somethign like ...

cp foo.text <cdrom>

...what is the value for <cdrom>.  Sure perhaps there is probably some
graphical way to do this, but why succumb to feeping creaturism?  Give
me back my command line, please. (especially when I want to move > 5000
files).

Bill

On Mon, 21 Jun 2004, Doc Shipley wrote:

> William L. Jarrold wrote:
>
> > Hi,
> >
> > I have a whole lot of ascii text files (> 5000) that I want to save
> > onto a cdrom via my iBook's cdrom.  Any advice on how to do
> > this would be appreciated.  The person to whom I am giving the
> > cd is not unix literate and wants all the files right there, e.g.
> > not bundled via tar.
> >
> > Here are some cd rom related tricks that have worked on other machines...
> >
> > bash-2.05a$ eject
> > bash: eject: command not found
> > bash-2.05a$ mount /cdrom
> > mount: /cdrom: unknown special file or file system.
> > bash-2.05a$
>
>    The "Missing Manual" or "Mac OS X for Unix Geeks", both from
> O'Reilly, will help a lot with stuff like this.  I've come to understand
> that OS X has lots of neat Unix tools, but it is NOT Unix.  I'm having
> to learn a new OS.
>
> > ...any idea how to avoid that "Argument list too long"
> > error?  I have been meaning to send a separate note about
> > that problem for weeks now....Recent hacks have
> > suggested that something like this might work...
> >
> > for i in ls ; do cp $i <cd-rom-incantation> ; done
> >
> > ...but a non-hack solution would be greatly appreciated.  My perl
> > is worse than my unix but I am v willing to try a perl soln but you'll
> > have to be pretty explicit about what I am to do.
>
>    man xargs
>
>    /bin/ls * | xargs -J % cp -rp % destdir
>
>    Should do about what you want.
>
>
>       Doc
>
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to