En 1985, Larry Wall compuso una utilidad separada, patch, que generalizó y extendió la habilidad para modificar archivos con resultado diff.
Late in 1984 Larry Wall created a separate utility, patch, releasing its source code on the mod.sources and net.sources newsgroups. This program generalized and extended the ability to modify files with output from diff.
El comando diff original nuevo produce el siguiente resultado diff normal
The command diff original new produces the following normal diff output
McIlroy consideró escribir un post-procesador para diff donde una variedad de formatos de resultados pudiesen ser diseñados e implementados, pero encontró que era más frugal y sencillo hacer que diff fuese para modificar archivos con resultado diff.
McIlroy considered writing a post-processor for diff where a variety of output formats could be designed and implemented, but he found it more frugal and simpler to have diff be responsible for generating the syntax and reverse-order input accepted by the ed command.
Alte rezultate
context Indica el número de líneas de contexto que desea incluir en el diff resultado.
context Indicates how many lines of context you want to include in diff result.
La idea es permitir al usuario gran flexibilidad durante la configuración del resultado de diff. Pero necesita un programa externo, y muchos usuarios no quieren escribirlo ellos. La buena noticia es que muchas veces sed o perl harán este trabajo.
The idea is to allow the user greater flexibility while configuring the diff-result. But this requires an external program, and many users do not want to write one themselves. The good news is that very often sed or perl will do the job.
Si el resultado del comando diff (compare file) es solo el prompt usual, entonces los archivos son idénticos y el quemado fue adecuado.
If the result of the diff (compare file) command is just the usual prompt then the files are identical and the burn was good.
Las implementaciones modernas también soportan archivos binarios. El resultado se conoce como diff o patch ya que el mismo puede ser aplicado con el programa Unix patch.
The output is called a "diff", or a patch, since the output can be applied with the Unix program patch.
Sus correcciones dieron como resultado un fichero diff de 200 kB que corregía más de 1.300 paquetes (de los más de 8.000 existentes).
His corrections resulted in a 200kB diff file for more than 1,300 (out of 8,000) packages.
Si usted está creando un archivo parche para un archivo único NOMBREDEARCHIVO, una forma común de hacerlo es copiar a NOMBREDEARCHIVO.orig, modificarlo, y luego guardar el resultado como "diff -u NOMBREDEARCHIVO.orig NOMBREDEARCHIVO"
If you're creating a patch file a single file FILENAME, a common way is to copy it to FILENAME.orig, modify it, and then save the results of "diff -u FILENAME.orig FILENAME"
El resultado terminó con la batalla de Hunter contra el C. diff.
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple