version 1.1, 2015/07/12 10:34:06 |
version 1.2, 2015/07/19 16:44:48 |
Line 12 tmpfile=$(mktemp) |
|
Line 12 tmpfile=$(mktemp) |
|
cp ${filename} ${tmpfile} |
cp ${filename} ${tmpfile} |
|
|
# some dirty modifications |
# some dirty modifications |
cat ${tmpfile} | (rm ${tmpfile}; sed s/"箱山, 洋."/"箱山 洋"/g > ${tmpfile}) |
(rm ${tmpfile}; sed s/"箱山, 洋."/"箱山 洋"/g > ${tmpfile}) < ${tmpfile} |
cat ${tmpfile} | (rm ${tmpfile}; sed s/"巌佐, 庸."/"巌佐 庸"/g > ${tmpfile}) |
(rm ${tmpfile}; sed s/"巌佐, 庸."/"巌佐 庸"/g > ${tmpfile}) < ${tmpfile} |
cat ${tmpfile} | (rm ${tmpfile}; sed /\>NA\</d > ${tmpfile}) |
(rm ${tmpfile}; sed /\>NA\</d > ${tmpfile}) < ${tmpfile} |
cat ${tmpfile} | (rm ${tmpfile}; sed /\>NA\./d > ${tmpfile}) |
(rm ${tmpfile}; sed /\>NA\./d > ${tmpfile}) < ${tmpfile} |
cat ${tmpfile} | (rm ${tmpfile}; sed -E 's/\?\./\?/g' > ${tmpfile}) |
(rm ${tmpfile}; sed -E 's/\?\./\?/g' > ${tmpfile}) < ${tmpfile} |
cat ${tmpfile} | (rm ${tmpfile}; sed -E 's/?\./?/g' > ${tmpfile}) |
(rm ${tmpfile}; sed -E 's/?\./?/g' > ${tmpfile}) < ${tmpfile} |
|
|
# list of the start line-number and end line-number of articles |
# list of the start line-number and end line-number of articles |
start=`sed -n '/<article/=' ${tmpfile}` |
start=`sed -n '/<article/=' ${tmpfile}` |