tdiff 286 B

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