If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Comparar ficheros excluyendo lineas por linea de comandos
Comparar ficheros excluyendo lineas por linea de comandos
Hola, necesitaría comparar ficheros excluyendo la primera y la ultima linea, a poder ser por linea de comandos. Es posible? Existe algún Script para ello?
You can call a compare from the command line using either BC Scripting (bcompare.exe @c:\bcscript.txt) or using Quick Compare (bcompare.exe /qc c:\file1 c:\file2). Both methods are documented in more detail in the Help file -> Using Beyond Compare -> Automating With script, or in the Help file -> Command Line Reference.
Would you be looking to generate a Text Report automatically? That would be Script.
If you need an %ErrorLevel% value returned, that would be Quick Compare.
Excluding the first and last line would need to be configured within the graphical interface first. To do this, I would recommend creating a File Format for your files, then create a new grammar element that matches on your first line, and mark it as Unimportant by default. Then repeat for the last line. When you then compare a pair of the files in a new, blank Text Compare, the lines should be unimportant by default. If so, they will also be unimportant in a command line call.
To set the session settings default, use the Home screen's Saved Sessions list, expand the Edit session defaults folder, and select the Text Compare. In the Importance tab here, uncheck your grammar element name(s).
translate.google.com
Hola,
Usted puede llamar a una comparación de la línea de comandos utilizando BC Scripting (bcompare.exe @ c: \ bcscript.txt) o el uso de Quick Compare (bcompare.exe / qc c: \ archivo1 c: \ archivo2). Ambos métodos se documentan en mayor detalle en el archivo de Ayuda -> Uso de Beyond Compare -> Automatizar Con la secuencia de comandos o en el archivo de Ayuda -> Línea de mandatos.
¿Estaría usted interesado en generar un Informe de texto de forma automática? Eso sería Script.
Si necesita un valor de%% ErrorLevel regresó, eso sería Quick Compare.
Excluyendo la primera y la última línea tendría que ser configurado en la interfaz gráfica de primera. Para hacer esto, yo recomendaría la creación de un archivo de formato para sus archivos, a continuación, crear un nuevo elemento de la gramática que coincide en su primera línea, y se marca como no importante por defecto. A continuación, repita la última línea. Cuando se compara un par de los archivos en un nuevo texto Compare en blanco, las líneas deben ser poco importante por defecto. Si es así, sino que también tienen importancia en la llamada línea de comandos.
Para establecer la configuración de sesión predeterminada, utilice la lista guardada Sesiones de la pantalla de inicio, abra la carpeta Editar valores predeterminados de sesión y seleccione el texto Comparar. En la pestaña importancia aquí, desactive el nombre del elemento gramatical (s).
Comment