[LUG.ro] "-" y consolas (duda)
Angel Aranciba
lugro@lugro.org.ar
Sat, 17 Feb 2007 11:36:19 -0300
Buen dia, estoy teniendo un problema .... como trato a archivos que
empiezan con un molesto "-". (en consola ... sea ssh, ncftp, ftp ...
etc).
ya probe con "\", con comillas ... pero nada ... me sigue tirando
error de opcion de comando invalido...
Ejemplo sobre ncftp:
ncftp ...ldonkey/incoming/files > get "-Natalie Cole - Leavin (2006) (Soul).rar"
Usage: get [-flags] file1 [file2...]
Flags:
-R : Recursive. Useful for fetching whole directories.
-z : Get the remote file file1, and name it to file2.
-a : Get files using ASCII mode.
-A : Append entire remote file to the local file.
-f : Force overwrite (do not try to auto-resume transfers).
Examples:
get README
get README.*
get "**Name with stars and spaces in it**"
get -R new-files-directory
get -z WIN.INI ~/junk/windows-init-file
Saludos y gracias
--
-----
Angel Arancibia
GNU/Linux User Registered #358969
http://counter.li.org/
ICQ: 327093745
MSN: angel.arancibia@gmail.com
-------------------------------
"Computer science is no more about computers than astronomy is about
telescopes." - Edsger W. Dijkstra
"There are only 10 types of people in the world: Those who understand
binary, and those who don't"