format_xml.sh 681 B

1234567891011121314151617
  1. export LANG=zh_CN.UTF-8@cjknarrow
  2. #git diff --name-only HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
  3. /usr/bin/find 策划脚本 -name '*.xml' | xargs sed -b -i \
  4. -e '/^ *<Active\(Sheet\|Row\|Col\)>/d' \
  5. -e '/^ *<\(TopRowBottom\|LeftColumnRight\)Pane>/d' \
  6. -e '/^ *<Selected\/>/d' \
  7. -e '/^ *<Window\(Height\|Width\|TopX\|TopY\)>/d' \
  8. -e '/^ *<\(Last\)*Author>/d' \
  9. -e '/^ *<TopRowVisible/d' \
  10. -e '/^ *<LastSaved/d' \
  11. -e '/^ *<LeftColumnVisible/d' \
  12. -e '/<Panes>/,/<\/Panes>/d' \
  13. -e '/<ConditionalFormatting xmlns/,/<\/ConditionalFormatting>/d' \
  14. -e '/<WorksheetOptions xmlns/,/<\/WorksheetOptions>/d' \
  15. -e '/^ *<Split/d'