GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   best linux util for parsing xml data? (https://gfy.com/showthread.php?t=1086762)

fris 10-25-2012 07:05 AM

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
:thumbsup


All times are GMT -7. The time now is 07:52 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123