Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. grep "id=" sample.svg
  2. id="svg2"
  3. id="metadata8">
  4. id="defs6">
  5. id="clipPath3342">
  6. id="circle3344"
  7. id="namedview4"
  8. showgrid="false"
  9. id="image10"
  10. id="path3348"
  11. id="image3338"
  12. id="path3337"
  13.  
  14. awk 'BEGIN { n=1;} /(Wid=[^0-9]+)/ { sub(/[0-9]+/, n, $0)
  15. ++n
  16. }
  17. /.*/ { print }
  18. ' sample.svg | grep "id="
  19.  
  20. id="svg1"
  21. id="metadata2">
  22. id="defs3">
  23. id="clipPath4">
  24. id="circle5"
  25. id="namedview6"
  26. showgrid="false"
  27. id="image7"
  28. id="path8"
  29. id="image9"
  30. id="path10"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement