20 puntos + iva. Solucioando con anteponer el "--" antes del nombre del archivo.

Saludos y gracias

PD:Alberto, ya habia probado con el "\", no funciona de esa forma. Gracias

El 19/02/07, Nicolás Aimetti <[EMAIL PROTECTED]> escribió:
Es lunes y medio temprano para mi, así que por ahí digo cualquiera,
pero yo probaría anteponer dos guiones "--" antes de los nombres de
archivos.
Usualmente los dos guiones en los argumentos de un comando le indican al
mismo que se terminaron las opciones (las cuales usualmente se
especifican anteponiendo un guión).
Ejemplo:

ncftp ...ldonkey/incoming/files > get -- "-Natalie Cole - Leavin (2006)
(Soul).rar"


Saludos,
Nicolás.

Angel Aranciba wrote:
> 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
>

_______________________________________________
Lugro mailing list
[email protected]
http://www.lugro.org.ar/mailman/listinfo/lugro



--
-----
Angel Arancibia

GNU/Linux User Registered #358969
http://counter.li.org/

ICQ: 327093745
MSN: [EMAIL PROTECTED]
-------------------------------

"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"

_______________________________________________
Lugro mailing list
[email protected]
http://www.lugro.org.ar/mailman/listinfo/lugro

Responder a