Reblog via Dr. Juande Santander-Vela

Reminder to myself: the “file in place” syntax for zsh is <(script), where the output of script is substituted as a file input argument to a particular tool.

I use it a lot with ksdiff to make diffs of things that may come, for instance, from Jira messages where I get two versions of the same text. Then, I type:

ksdiff <(echo "Final texto") <(echo "Final text")

and can get a graphical view of the difference.

Screenshot of Kaleidoscope showing the graphical output of the terminal command `ksdiff <(echo "Final texto") <(echo "Final text”)`.

You can see that the row is highlighted because there are changes in it, and the words texto and text are more strongly highlighted to indicate where the change is exactly within the line.


Descubre más desde Memoria de Acceso Aleatorio

Suscríbete ahora para seguir leyendo y obtener acceso al archivo completo.

Seguir leyendo