this post was submitted on 16 Mar 2026
13 points (100.0% liked)
Linux
12841 readers
1258 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I quickly wrote a script that uses
kdialogfrom KDE to input text in a box, then writes both files to a temporary file, compares withdiffand outputs the difference in a text box again. At the end it deletes the temporary files (if they are not deleted, they will be removed automatically with next system boot anyway). It's a quick and dirty script.I call it
diffuse, for diff + use.Edit: Forgot to mention the name of the script. Edit2: Totally wrong shebang line corrected.
You could save the output to bash vars instead of temp files and pass those in using
diff <( echo $str1 ) <( echo $str2 )I would want to avoid
echoand just write to output file directly.