SCP a vice souboru

uhlar na fantomas.sk uhlar na fantomas.sk
Čtvrtek Listopad 22 15:09:24 CET 2001


Jan ' Kozo ' Vajda <jvajda na somi.sk> wrote:
-> :> scp user na host:*.mp3 .

-> nechcem sa Vam nmiesat do flame :-{)), ale obaja by ste mohli vyhrat sutaz o
-> nepouzitelny prikaz ..

-> expanzia widlcards by vam z toho spravila bordel ..

-> takze ked uz, tak potom takto:

-> scp user na host:\*.mp3 .

-> inak Vam stroj na ktorom sa nachadzate napise:

-> scp: No match.

zalezi od shellu a jeho nastavenia.

ak v sh pouzijes wildcard pre nieco co neexistuje, sh preda prikazu to co si
zadal. Takze ak by dotycny mal v aktualnom adresari na lokalnej masine
subor, ktory by odpovedal maske user na host:*.mp3, dospeli by sme k
zaujimavemu vysledku :)

bash:

If no matching file names are found, and the shell option nullglob is
disabled, the word is left unchanged. If the nullglob option is set, and no
matches are found, the word is removed.

tcsh:

       nonomatch
               If set, a Filename substitution or Directory stack
               substitution  (q.v.)  which  does  not  match  any
               existing files is left untouched rather than caus­
               ing an error.  It is still an error for  the  sub­
               stitution  to  be  malformed,  e.g. `echo [' still
               gives an error.


-- 
 Matus "fantomas" Uhlar, uhlar na fantomas.sk ; http://www.fantomas.sk/
 Warning: I don't wish to receive spam to this address.
 Varovanie: Nezelam si na tuto adresu dostavat akukolvek reklamnu postu.
 Emacs is a complicated operating system without good text editor.


Další informace o konferenci Linux