Duda uso diff MacOs #53
-
Hola! Me ocurre que al ocupar el comando diff output.txt tests/parte/correct-output.txt por ejemplo, me marca todo el output diferente a pesar que es idéntico al revisarlo manualmente. Leí en el grupo de telegram que diff -b podía ser de ayuda pero mi computador (que es mac) no lo reconoce. Quedo muy atenta. No estaba segura si se podían adjuntar imágenes por acá. Muchas gracias de antemano. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
que raro, yo tengo mac también y si funciona ese comando. Te recomiendo revisar bien que no tengas espacios de mas (porque esos igual te los cuenta como diferentes) y sino intentar comparar con una herramienta externa como puede ser esta |
Beta Was this translation helpful? Give feedback.
-
Puedes revisar el manual de tu versión de Puedes adjuntar imágenes por acá del resultado de Por si acaso, recuerda que estamos ocupando espacios para indentar el output, no tabs. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Lo acabo de subir. Aprovecho de preguntar si es necesario subir los archivos mencionados en la foto a continuación. |
Beta Was this translation helpful? Give feedback.
-
Encontré el error, estás ocupando https://www.tutorialspoint.com/c_standard_library/c_function_fprintf.htm |
Beta Was this translation helpful? Give feedback.
Encontré el error, estás ocupando
printf
en vez de `fprintf. El primero escribe en la terminal y el segundo escribe en un archivo.https://www.tutorialspoint.com/c_standard_library/c_function_fprintf.htm