Ken, On Sunday 03 July 2005 03:25, ken wrote:
...
This is true for every host name but 'and'; this last one returns the authoritative name servers for zoy.org, which helps to adjust the script:
==--==--==--==--==--==--==--==--==--==--==--==--==--==--==- #!/bin/bash --norc for DVDs in Linux screw the MPAA and; do dig @ns1.zoy.org $DVDs.z.zoy.org; done \
| perl -ne 's/\.//g; print pack("H224",$1) if(/^x([^z]*)/)' \ | gunzip
==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
...
;; Query time: 262 msec ;; SERVER: 64.81.159.2#53(64.81.159.2) ;; WHEN: Sat Jul 2 17:09:51 2005 ;; MSG SIZE rcvd: 47
What's the perl part of the command/script supposed to do with this?
Once again, the code supplies the answer (obviously). The Perl code explicitly ignores lines that do not begin with an 'x' followed by characters other than 'z'. Before that, it removes all periods from the input. Now the lines it keeps (those starting with 'x') are simply hex-encoded data which the pack built-in turns into corresponding binary for gunzip. Randall Schulz