home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / mc454src.zip / mc-4.5.4.src / mc-4.5.4 / lib / tdiff < prev    next >
Text File  |  1999-01-04  |  286b  |  23 lines

  1. #!/bin/sh
  2. # This scripts compares two terminfo files and prints out the differences.
  3. #
  4. sort_it ()
  5. {
  6.     sed 's/^#.*//' $1 |
  7.     tr '\t' ' ' |
  8.     sed 's/ *//g' |
  9.     tr , '\012' |
  10.     tr -s '\012' |
  11.     sort > $1.$2
  12. }
  13.  
  14. sort_it $1 f1
  15. sort_it $2 f2
  16.  
  17. diff $1.f1 $2.f2
  18. rm $1.f1 $2.f2
  19.  
  20.  
  21.  
  22.