File: wordlist

package info (click to toggle)
debian-reference 2.128
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,588 kB
  • sloc: python: 586; makefile: 572; sh: 526; sed: 80
file content (21 lines) | stat: -rwxr-xr-x 542 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# Copyright (C) 2009 Osamu Aoki <osamu@debian.org>
#
# This is free software with ABSOLUTELY NO WARRANTY.
#
# You can redistribute it and/or modify it under the terms of
# the GNU General Public License version 2 or later.
# 
# Strip header out of PO file.
#
#    zcat debian-reference.??.txt.gz | wordlist >word.list
#
sed -e "s/['│]/ /g" -e 's/"/ /g' -e "s/[.:;,] / /g" -e "s/[)] / /g" -e "s/ [(]/ /g"|\
xargs -n1 echo |\
grep -v "[-0-9/.:;,─━©—^~|_<>#()]" |\
grep -v "^$"|\
sort|uniq
#
#
# vim: set sts=2 ai expandtab: