Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo '<?xml version="1.0" encoding="utf-8"?><d:multistatus xmlns:d="DAV:"><d:response><d:href>/SN/</d:href><d:propstat><d:status>HTTP/1.1 200 OK</d:status><d:prop><d:quota-used-bytes>21496748972</d:quota-used-bytes><d:quota-available-bytes>23600407636</d:quota-available-bytes></d:prop></d:propstat></d:response></d:multistatus>' | sed -r 's/>/>\n/g'| sed -r 's/([^<]+)(<.+)/\1\n\2/'| awk '$0~/<[^\/?].*|^[^<]/{r++}{f=r;while(f>1){printf "\t"; f--};printf $0"\n"} $0~/^[^<]|<\/.*/{r--}'
- <?xml version="1.0" encoding="utf-8"?>
- <d:multistatus xmlns:d="DAV:">
- <d:response>
- <d:href>
- /SN/
- </d:href>
- <d:propstat>
- <d:status>
- HTTP/1.1 200 OK
- </d:status>
- <d:prop>
- <d:quota-used-bytes>
- 21496748972
- </d:quota-used-bytes>
- <d:quota-available-bytes>
- 23600407636
- </d:quota-available-bytes>
- </d:prop>
- </d:propstat>
- </d:response>
- </d:multistatus>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement