mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-26 22:10:24 +00:00
19 lines
329 B
Bash
Executable File
19 lines
329 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ $# -lt 2 ]; then
|
|
echo "Usage: $0 output.exp input1 [input2 ... ]" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
OUTPUT="$1"
|
|
shift
|
|
|
|
# Note: we used to export both sides of the alias since forever
|
|
# for now keep doing this
|
|
|
|
( grep -h -v ":" "$@"; grep -h ":" "$@" | awk -F: '{print $1; print $2}' ) | sort -u > "$OUTPUT"
|
|
|
|
exit 0
|