| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # description: subtract $1 from $2 without sorting |
| 3 | # usage: ki $1 $2 |
| 4 | case $# in |
| 5 | [0-1]) echoscip-shell system . . echo. "description: subtract file1 from file2 |
| 6 | usage: ki file1 file2"; exit 0;; |
| 7 | esac |
| 8 | catscip-shell system . . cat. $2 | awkscip-shell system . . awk. "BEGIN{while ((getline var < \"$1\") > 0) w[var]=1} |
| 9 | w[\$0]!=1{print\$0}" >/tmp/ki$$ && mvscip-shell system . . mv. /tmp/ki$$ $2 |
| 10 | [scip-shell system . . `[`. -f /tmp/ki$$ ] && rmscip-shell system . . rm. /tmp/ki$$ |