| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # |
| 3 | # compare |
| 4 | # |
| 5 | # line diff disregarding duplicates |
| 6 | # dump lines found in file1 but NOT found in file2 |
| 7 | |
| 8 | if [scip-shell system . . `[`. "$1" = "" ]; then |
| 9 | echoscip-shell system . . echo. "usage: $0 file1 file2" |
| 10 | exit 1 |
| 11 | fi |
| 12 | |
| 13 | if [scip-shell system . . `[`. "$2" = "" ]; then |
| 14 | echoscip-shell system . . echo. "usage: $0 file1 file2" |
| 15 | exit 1 |
| 16 | fi |
| 17 | |
| 18 | commscip-shell system . . comm. -23 <(sortscip-shell system . . sort. $1|uniqscip-shell system . . uniq.) <(sortscip-shell system . . sort. $2|uniqscip-shell system . . uniq.) |
| 19 | |
| 20 | exit 0 |