Re: dd bajo winbugs 9x
Mauricio E Ruiz Font wrote:
>
> existe algun programa para hacer lo que el dd bajo winbugs...
Si el winbugs sige soportando ventanas de MS-DOS, entonces te recomiendo
el dd de GNU portado a MS-DOS por delorie (http://www.delorie.com). Se
encuentra formando parte del sistema DJGPP
(http://www.delorie.com/djgpp).
Utiliza el DJGPP Zip File Picker
(http://www.delorie.com/djgpp/zip-picker.html) para obtener el nombre y
localización de los ficheros que necesitarás, y las instrucciones de
instalación para tu winbugs. Puedes seleccionar el mirror que quieras
aunque no siempre están actualizados: yo siempre he preferido usar el
nodo principal (ftp.simtel.net). Seguramente sólo quieras correr
programas generados con DJGPP (como el dd.exe), leer documentación
on-line (¡con info!), no usar lenguajes de programación (C, C++, ...),
ni entornos integrados de desarrollo (IDEs), ni depuradores de código,
ni código fuente, ni documentación en otros formatos, ni kits de
herramientas.
Cuando le des al botón "Tell me which files I need" te aparecerá una
serie de ficheros e instrucciones de instalación. A los ficheros que te
diga, añade la última versión del paquete fil***b: v2gnu/fil316b.zip. Si
quieres tener un sistema MS-DOS que tenga más aplicaciones GNU, puedes
instalarte más paquetes del directorio v2gnu/, y también puede ser
interesante que leyeras el v2/readme.1st
Ésta es la página info del dd.exe que hay en DJGPP (igualita a la que
aparece en Debian si haces "info dd"):
File: fileutils.info, Node: dd invocation, Next: install invocation,
Prev: c\
p invocation, Up: Basic operations
`dd': Convert and copy a file
=============================
`dd' copies a file (from standard input to standard output, by
default) with a changeable I/O blocksize, while optionally performing
conversions on it. Synopsis:
dd [OPTION]...
The program accepts the following options. Also see *Note Common
options::.
The numeric-valued options below (BYTES and BLOCKS) can be followed
by a multiplier: `b'=512, `c'=1, `k'=1024, `w'=2, `xM'=M.
`if=FILE'
Read from FILE instead of standard input.
`of=FILE'
Write to FILE instead of standard output. Unless `conv=notrunc'
is given, `dd' truncates FILE to zero bytes (or the size specified
with `seek=').
`ibs=BYTES'
Read BYTES bytes at a time.
`obs=BYTES'
Write BYTES bytes at a time.
`bs=BYTES'
Both read and write BYTES bytes at a time. This overrides `ibs'
and `obs'.
`cbs=BYTES'
Convert BYTES bytes at a time.
`skip=BLOCKS'
Skip BLOCKS `ibs'-byte blocks in the input file before copying.
`seek=BLOCKS'
Skip BLOCKS `obs'-byte blocks in the output file before copying.
`count=BLOCKS'
Copy BLOCKS `obs'-byte blocks from the input file, instead of
everything until the end of the file.
`conv=CONVERSION[,CONVERSION]...'
Convert the file as specified by the CONVERSION argument(s). (No
spaces around any comma(s).)
Conversions:
`ascii'
Convert EBCDIC to ASCII.
`ebcdic'
Convert ASCII to EBCDIC.
`ibm'
Convert ASCII to alternate EBCDIC.
`block'
For each line in the input, output `cbs' bytes, replacing the
input newline with a space and padding with spaces as
necessary.
`unblock'
Replace trailing spaces in each `cbs'-sized input block with a
newline.
`lcase'
Change uppercase letters to lowercase.
`ucase'
Change lowercase letters to uppercase.
`swab'
Swap every pair of input bytes. GNU `dd', unlike others,
works when an odd number of bytes are read--the last byte is
simply copied (since there is nothing to swap it with).
`noerror'
Continue after read errors.
`notrunc'
Do not truncate the output file.
`sync'
Pad every input block to size of `ibs' with trailing zero
bytes.
¡Viva el software libre! Aunque sea para Winbugs...
--
Conrado Badenas <Conrado.Badenas@uv.es>
PhD student | Assistant Lecturer
Department of Thermodynamics | Department of Optics
---------------------------------------------------
Faculty of Physics. University of Valencia
c/. Dr. Moliner, 50
46100 Burjassot (Valencia) - SPAIN
Reply to: