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.



Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.

Descubre más desde Memoria de Acceso Aleatorio

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

Seguir leyendo