File: extract-group-names-from-symbols.sh

package info (click to toggle)
xkeyboard-config 2.42-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,960 kB
  • sloc: xml: 9,883; python: 1,328; perl: 220; sh: 86; makefile: 22
file content (19 lines) | stat: -rwxr-xr-x 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# Usage: extract-group-names-from-symbols.sh ../symbols
#
# Extract the Group1 names from all symbol files in the given directory
#
# Example output:
# us:"Atsina"
# us:"Cherokee"
# us:"Coeur d'Alene Salish"
# us:"Czech, Slovak and German (US)"
# us:"English (3l)"
# us:"English (3l, Chromebook)"
# us:"English (3l, emacs)"
# us:"English (Carpalx)"

pushd $1 > /dev/null
grep 'name\[Group1\]' * | sed 's/[[:space:]]*name\[Group1\].*=[[:space:]]*//;s/;[[:space:]]*$//' | sort
popd > /dev/null