View Single Post
Old 10-25-2012, 07:05 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,388
best linux util for parsing xml data?

curious what you guys use currently im just using grep,sed and wget to grab images from a wordpress export and grabbing them. if i can get rid of grep and sed from the equation would be neat.

Code:
grep '<wp:attachment_url>' export.xml | sed -e 's/<wp:attachment_url>\(.*\)<\/wp:attachment_url>/\1/;s/^[ \t]*//' | sed '$!N; /^\(.*\)\n\1$/!P; D' | xargs wget -q
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote