Develop and Download Open Source Software

Browse Subversion Repository

Contents of /XspfManager/fixFamilyNames.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (show annotations) (download) (as text)
Tue Nov 3 07:52:23 2009 UTC (14 years, 4 months ago) by masaki
File MIME type: text/x-sh
File size: 399 byte(s)
[New] すっごくいっぱい変更。
1 #!/bin/sh
2
3 INPUT='FamilyName.txt'
4 TEMP=$INPUT.tmp
5
6 cp ${INPUT} ${INPUT}.bak
7
8 awk '
9 {
10 print
11 }
12 /ti/ {
13 print
14 gsub("ti","chi")
15 print
16 }
17 /chi/ {
18 print
19 gsub("chi","ti")
20 print
21 }
22 /si/ {
23 print
24 gsub("si", "shi")
25 print
26 }
27 /shi/ {
28 print
29 gsub("shi", "si")
30 print
31 }
32 /tu/ {
33 print
34 gsub("tu", "tsu")
35 print
36 }
37 /tsu/ {
38 print
39 gsub("tsu", "tu")
40 print
41 }
42 ' ${INPUT} | sort -u > ${TEMP}
43
44 mv ${TEMP} ${INPUT}

Properties

Name Value
svn:executable *

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26