You are not logged in.
Pages: 1
Trying to make a custom action to compare 2 files.
This does not work.
diff %F %F
Ubuntu-Mate 24.04
Offline
Use a script like this (requires zenity):
#!/bin/bash
if [ $# -ne 2 ]
then
zenity --error --title "DiffViewer" --text "Select only two files to compare" --no-wrap
exit 1
fi
diff "$1" "$2" | zenity --text-info --title "DiffViewer" --height=500 --width=500
In the custom action, set the command to
/path/to/this/script %F
On the Appearance tab, select "Text Files"
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
You could also do it with meld (graphical tool to diff and merge files). It requires "meld" package to be installed on your system and then:
meld %F
(* file pattern, text files only)
This is how it looks: https://screenshots.debian.net/package/meld
Last edited by Spass (2019-03-10 10:39:53)
Offline
Is comparing two files something only a professional computer person would need to use? I'm trying to think of practical applications for this type of command, for regular Linux users.
Offline
You could also do it with meld (graphical tool to diff and merge files). It requires "meld" package to be installed on your system and then:
meld %F
(* file pattern, text files only)
This is how it looks: https://screenshots.debian.net/package/meld
Thanks. I really like meld.
Ubuntu-Mate 24.04
Offline
Pages: 1
[ Generated in 0.009 seconds, 8 queries executed - Memory usage: 530.74 KiB (Peak: 532.02 KiB) ]