On Wed, 6 Jun 2001, Peter Jay Salzman wrote:

> is there a way to refer to more than one filename without globbing or
> specifying an absolute pathname for each file?
> 
> for example, suppose i have a directory xmen with the contents:
> 
> /usr/local/xmen
>   |
>   +--- cyclops
>   |
>   +--- shadowcat
>   |
>   +--- xavier
>   |
>   +--- storm
> 
> is there a notation i can use to single out 2 files?  something like:
> 
>       cp /usr/local/xmen{cyclops,shadowcat} /home/xmen

Assuming cyclops and shadowcat are regular files,

 cp /usr/local/xmen/{cyclops,shadowcat} /home/xmen

> i could've sworn mike simons showed me something like this, but i can't
> remember what the syntax was.

Yes, you did. :)

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
Work:<[EMAIL PROTECTED]>              Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------

Reply via email to