xmllint
の--format
オプションを使う。
カレント配下を一括でやるなら
find . -name '*.xml' | sed 's@.*@xmllint --format & > &.new \&\& mv &.new &@' | sh
など
参考
unix - How to pretty print XML from the command line? - Stack Overflow
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
xmllint
の--format
オプションを使う。
カレント配下を一括でやるなら
find . -name '*.xml' | sed 's@.*@xmllint --format & > &.new \&\& mv &.new &@' | sh
など
unix - How to pretty print XML from the command line? - Stack Overflow
Register as a new user and use Qiita more conveniently
Go to list of users who liked