On 07/20/2010 07:46 PM, David Haller wrote:
PS: Any progress on the lynx-dump filtering? I'd still say: go with my awk-approach, it's by far the most efficient (and easiest). I'll explain the awk-code in depth, if you ask nicely and have your 'man awk' handy ;)
Well I'm using lynxdump.sh right now to pull compiz from both the 11.3 compiz and XGL repos so I can get with Dominique and figure out why compiz just died after updates. Honestly, I haven't gotten the 'cool' solution done yet, but damn this is a handy app for working with rpms :p For the curious: http://www.3111skyline.com/dl/dev/scr/net/lynxdump.sh 21:30 alchemy:~> sh scr/net/lynxdump.sh Error: No input URL provided, read below to resolve this problem... Usage: lynxdump.sh [-h|--help] [-v|--verbose] [-r|--rpm] [--nodebug] [-d|--dirs] [-b|--base] url-with-links [-o|--outfile outfile] lynxdump.sh uses 'lynx -dump' to capture all links from 'url-with-links' and parses the output leaving only the direct URLs. The resulting links written to 'outfile' (default: ./lynxdump.txt) can be used with 'wget -i outfile' to retrieve all files from the remote host. Options: -h | --help show this help and exit (must be only option given). -b | --base the next URL provides the baseURL information as well as a directory (i.e. -b http://download.lynx.org/docs) All other urls with the same baseURL need only provide the directory name (i.e. download, svn). -d | --dirs include sub-directories in the list of links. -o | --outfile the following command line option profides the output file name. -r | --rpm changes dump file parsing so that only rpm links are saved. --nodebug excludes debuginfo and debugsource files. (use with -r | --rpm) -v | --verbose additional output of script operations. Example: lynxdump -b http://download.opensuse.org/repositories/X11/i586 src x86_64 --rpm --nodebug creates an output file with the links to rpms in ../X11/i586 ../X11/src and ../X11/src directories without the debuginfo or debugsource files included. Very handy if you need to create a list of files to retrieve from a remote site -- forget all that editing 'getlists' and stuff like that :p -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org