Loading incoming/yasuoka/bin/.makecorpus.sh.swp 0 → 100644 +12 KiB File added.No diff preview for this file type. View file incoming/yasuoka/bin/makecorpus.sh +4 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,10 @@ G=$D/corpus/$B.mc.utf-8 if [ ! -s $G ] then sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' `ls -1t incoming/*/[th]*/$B.utf-8 | head -1` | tr '()\133\135' '\012\012\012\012' > $G elif [ $D/hakubun/$B.utf-8 -nt $G ] then ( sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' `ls -1t incoming/*/[th]*/$B.utf-8 | head -1` | tr '()\133\135' '\012\012\012\012' ; echo '' ) | tr -s '\012' '\012' > $G.a~ sed -e '/ /{' -e :loop -e N -e 's/ .*\n//' -e 's/EOS//p' -e '/ /bloop' -e '}' $G > $G.b~ exit else : fi xemacs $G Loading Loading
incoming/yasuoka/bin/.makecorpus.sh.swp 0 → 100644 +12 KiB File added.No diff preview for this file type. View file
incoming/yasuoka/bin/makecorpus.sh +4 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,10 @@ G=$D/corpus/$B.mc.utf-8 if [ ! -s $G ] then sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' `ls -1t incoming/*/[th]*/$B.utf-8 | head -1` | tr '()\133\135' '\012\012\012\012' > $G elif [ $D/hakubun/$B.utf-8 -nt $G ] then ( sed -e 's/[/\[/g' -e 's/]/\]/g' -e 's/\[[^]]*\]//g' -e 's/(/(/g' -e 's/)/)/g' -e 's/([^)]*)//g' `ls -1t incoming/*/[th]*/$B.utf-8 | head -1` | tr '()\133\135' '\012\012\012\012' ; echo '' ) | tr -s '\012' '\012' > $G.a~ sed -e '/ /{' -e :loop -e N -e 's/ .*\n//' -e 's/EOS//p' -e '/ /bloop' -e '}' $G > $G.b~ exit else : fi xemacs $G Loading