File: trim_keymaps.sh

package info (click to toggle)
console-data 2:1.12-5
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 6,388 kB
  • sloc: sh: 3,272; pascal: 472; makefile: 231; perl: 168
file content (9 lines) | stat: -rwxr-xr-x 187 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
#!/bin/sh

echo "Trimming and compressing keymaps in $1 .. "

T=`tempfile`
for keymap in `find $1 -name '*.gz'  ` ; do
	 gunzip < $keymap | grep -v "^#" > $T ; 
	gzip < $T > $keymap
done