User Tools

Site Tools


slackware:cdiff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
slackware:cdiff [2011/01/23 14:21] slackslackware:cdiff [2019/11/07 17:58] (current) – external edit 127.0.0.1
Line 1: Line 1:
-Paste the following into .bashrc:+Paste the following into .bashrc (from [[http://www.ex-parrot.com/pdw/cdiff.html|Paul Warren]]):
  
 <code bash cdiff.txt> <code bash cdiff.txt>
Line 31: Line 31:
 </code> </code>
  
-If piping into less, use "less -r" or "less -R".+I generally hardlink .bash_profile to .bashrc so that all shell-like environments are set up the same way -- this may not be The Right Thing To Do[TM] but it seems to make things work the way you probably expected them to if you don't look too hard (my usual goal).  If piping into less, use "less -r" or "less -R" Want to compare MS Word files in colour?  Tack on: 
 + 
 +<code bash docdiff.txt> 
 +# compare word files in colour 
 + 
 +function docdiff { 
 +  cdiff <(antiword "$1") <(antiword "$2") | less -r 
 +
 +</code>
slackware/cdiff.1295792465.txt.gz · Last modified: 2019/11/07 17:58 (external edit)