[vox-tech] shell question: globbing and command arguments
Jeff Newmiller
vox-tech@lists.lugod.org
Mon, 3 Nov 2003 10:11:28 -0800 (PST)
On Mon, 3 Nov 2003, Bill Kendrick wrote:
> On Mon, Nov 03, 2003 at 08:58:22AM -0800, p@dirac.org wrote:
> > so if i have "backup.*" in my local directoy, my example wouldn't work?
> > i'll check that out.
>
> No, your example was:
>
> scp p@remote.host:backup* .
>
> So if you have files named, for example:
>
> p@remote.host:backup-me
> p@remote.host:backup234
>
> those'll end up being noticed by bash. Highly unlikely that you'd have files
> with those names, though. ;)
Perhaps the first time he did it it might be unlikely.
Beware the dreaded second time, after the shellscript is written!
---------------------------------------------------------------------------
Jeff Newmiller The ..... ..... Go Live...
DCN:<jdnewmil@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playing
Research Engineer (Solar/Batteries O.O#. #.O#. with
/Software/Embedded Controllers) .OO#. .OO#. rocks...2k
---------------------------------------------------------------------------