You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
275 B

#!/bin/bash
usage () {
echo "Usage: $0 apex_allowed_list_file apex_contents_file"
}
if [[ $# -ne 2 ]]; then
usage
exit 1
fi
echo "Adding following files to $1:"
diff \
--unchanged-group-format='' \
--changed-group-format='%<' \
$2 $1
cat $1 $2 | sort -u > $1