1#!/bin/bash 2 3usage () { 4 echo "Usage: $0 apex_allowed_list_file apex_contents_file" 5} 6 7if [[ $# -ne 2 ]]; then 8 usage 9 exit 1 10fi 11 12echo "Adding following files to $1:" 13diff \ 14 --unchanged-group-format='' \ 15 --changed-group-format='%<' \ 16 $2 $1 17 18cat $1 $2 | sort -u > $1 19