]>
Commit | Line | Data |
---|---|---|
b7266188 A |
1 | #!/bin/sh |
2 | ||
3 | set -e | |
4 | ||
5 | if [ $# -lt 2 ]; then | |
6 | echo "Usage: $0 output.exp input1 [input2 ... ]" 1>&2 | |
7 | exit 1 | |
8 | fi | |
9 | ||
10 | OUTPUT="$1" | |
11 | shift | |
12 | ||
cb323159 A |
13 | # Note: we used to export both sides of the alias since forever |
14 | # for now keep doing this | |
15 | ||
16 | ( grep -h -v ":" "$@"; grep -h ":" "$@" | awk -F: '{print $1; print $2}' ) | sort -u > "$OUTPUT" | |
b7266188 A |
17 | |
18 | exit 0 |