translate-date.sh 604 B

1234567891011121314151617
  1. #!/bin/sh
  2. # usage: translate-general-ent.sh general.ent general-cn.ent
  3. sed -e '/releasedate/s@"\([A-Za-z]*\) \([0-9]*\), \([0-9]*\)"@"\3 年 \1 月 \2 日"@' \
  4. -e '/releasedate/s@Jan[a-z]*@1@' \
  5. -e '/releasedate/s@Feb[a-z]*@2@' \
  6. -e '/releasedate/s@Mar[a-z]*@3@' \
  7. -e '/releasedate/s@Apr[a-z]*@4@' \
  8. -e '/releasedate/s@May[a-z]*@5@' \
  9. -e '/releasedate/s@Jun[a-z]*@6@' \
  10. -e '/releasedate/s@Jul[a-z]*@7@' \
  11. -e '/releasedate/s@Aug[a-z]*@8@' \
  12. -e '/releasedate/s@Sept[a-z]*@9@' \
  13. -e '/releasedate/s@Oct[a-z]*@10@' \
  14. -e '/releasedate/s@Nov[a-z]*@11@' \
  15. -e '/releasedate/s@Dec[a-z]*@12@' $1 > $2