Ich heute zufällig über http://planetkde.org/ auf den Google Treasure Hunt 2008 aufmerksam geworden und habe es natürlich gleich ausprobiert. Ich habe folgende Aufgabe bearbeitet:

*Unzip the archive, then process the resulting files to obtain a numeric result. You’ll be taking the sum of lines from files matching a certain description, and multiplying those sums together to obtain a final result. Note that files have many different extensions, like ‘.pdf’ and ‘.js’, but all are plain text files containing a small number of lines of text. *

  • Sum of line 4 for all files with path or name containing BCD and ending in .xml Sum of line 3 for all files with path or name containing EFG and ending in .xml *Hint: If the requested line does not exist, do not increment the sum.

  • Multiply all the above sums together and enter the product below. *(Note: Answer must be an exact, decimal representation of the number.)

Mit ein wenig Bash-Scripting ist das auch sehr schnell und einfach lösbar. Viel Spaß beim hacken 🙂