format_xml.sh 410 B

123456789101112
  1. export LANG=zh_CN.UTF-8@cjknarrow
  2. /usr/bin/find 策划脚本 -name '*.xml' | xargs sed -b -i \
  3. -e '/^ *<Active\(Sheet\|Row\|Col\)>/d' \
  4. -e '/^ *<\(TopRowBottom\|LeftColumnRight\)Pane>/d' \
  5. -e '/^ *<Selected\/>/d' \
  6. -e '/^ *<Window\(Height\|Width\|TopX\|TopY\)>/d' \
  7. -e '/^ *<\(Last\)*Author>/d' \
  8. -e '/^ *<TopRowVisible/d' \
  9. -e '/<Panes>/,/<\/Panes>/d' \
  10. -e '/^ *<Split/d'