1#!/bin/sh 2# 3# Usage: extract-group-names-from-symbols.sh ../symbols 4# 5# Extract the Group1 names from all symbol files in the given directory 6# 7# Example output: 8# us:"Atsina" 9# us:"Cherokee" 10# us:"Coeur d'Alene Salish" 11# us:"Czech Slovak and German (US)" 12# us:"English (3l)" 13# us:"English (3l, Chromebook)" 14# us:"English (3l, emacs)" 15# us:"English (Carpalx)" 16 17pushd $1 > /dev/null 18grep 'name\[Group1\]' * | sed 's/[[:space:]]*name\[Group1\].*=[[:space:]]*//;s/;[[:space:]]*$//' | sort 19popd > /dev/null 20