Skip to main content
updated comment to include image for `git diff`.
Source Link
jnovack
  • 1.4k
  • 9
  • 19

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff="/usr/bin/grc /usr/bin/diff"

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.enter image description here

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff="git diff"

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff="/usr/bin/grc /usr/bin/diff"

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff="git diff"

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff="/usr/bin/grc /usr/bin/diff"

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.enter image description here

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff="git diff"

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff=`diff="/usr/bin/grc /usr/bin/diff`diff"

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff=`gitdiff="git diff`diff"

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff=`/usr/bin/grc /usr/bin/diff`

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff=`git diff`

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff="/usr/bin/grc /usr/bin/diff"

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff="git diff"
added 156 characters in body
Source Link
jnovack
  • 1.4k
  • 9
  • 19

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff=`/usr/bin/grc /usr/bin/diff`

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff=`git diff`

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff=`/usr/bin/grc /usr/bin/diff`

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing.

git diff master:cogs/foo.txt branch:widgets/bar.txt

As always, you can alias diff for ease of use.

alias diff=`git diff`

Perl has a a lackluster colordiff wrapper for diff, but I prefer grc (generic colorizer).

With grc (generic colorizer), you can write your own wrappers for different types of commands or inputs (if you like that sort of thing).

Below, grc is running against /var/log/syslog (in the config, this file is set to a certain color scheme), where it highlights processes, pids, IPs and "connect"s.

Of course, it is recommended to use an alias so you don't forget:

alias diff=`/usr/bin/grc /usr/bin/diff`

grc running against syslog


If you have git, you may just want to use that, which allows very robust diffing, even across branches.

git diff master:cogs/foo.txt branch:widgets/bar.txt

You do not have to use git diff within a repository, you can use it for just regular files.

git diff old.txt new.txt

As always, you can alias diff for ease of use.

alias diff=`git diff`
Source Link
jnovack
  • 1.4k
  • 9
  • 19
Loading