Please help me solve this code!
echo "Hello World" | \
awk -F '' '{ for (i = NF; i > 0; --i) { printf("%s", $i) } }' | \ od -An -t uC | tr ' ' '\n' | sed '/^$/d'| \ awk 'BEGIN { split("95:103:107:105:83:0:106:106:105:95:65:46", offset, ":") i = 0 } { if ((i == 2) || (i == 8)) { print "." } print $1 - offset[++i] }' | \ sed 's/^32/ /' | tr -d '\n' |
please use [code]here comes your script[/code]
These are a lot of commands, an echo, awk, od, tr, sed, awk, sed and tr. You can analyze it command by command, so start with echo - that is a simple Hello World, next comes the awk: Code:
$ echo "Hello World" | \ see man od, tr about their usage and flags |
As above, at least give it a go or be specific about which piece you do not understand.
|
I was hoping someone would just figure out what the output of this section of code would be. I'm not proficient at all, just wanted to get the answer to this puzzle.
|
Quote:
|
Quote:
|
I apparently didn't make myself clear. This is not an assignment, it's not my job, it's simply a fun puzzle that should give coordinates to where a cache is hidden!
I'm not planning on becoming proficient and I don't have a terminal to run the code myself so I thought I would come to this forum for someone to get the answer! |
the answer is: 55.764 52.367
|
Quote:
|
Thank you Pan64. That looks to be where I was expecting the cache to be. I appreciate your time.
|
Funny, I thought geocaching and the like was supposed to be about the thrill of finding the caches yourself. Apparently now you just get everyone else to do the work while you reap whatever
the prize / benefit might be ... I can see how this would be rewarding?? |
Quote:
Suggestion is that you do not take on challenges in a form which require technology where you do not wish to learn or use it ever. Instead choose fun puzzles where you can solve them with your own resources. Why is it fun if you have absolutely no capability nor desire to attempt to solve it yourself? You apparently just want the end result. I'm sorry that someone decided to give you the result. If you wish to continue using LQ, I'd suggestion reviewing http://www.linuxquestions.org/questi...#faq_lqwelcome |
Wow, just relax, grail and rtmistler Your making lots of assumptions, aren't you? You're way off in what you're thinking.
Oh, and you might want to check your blood pressure if something like this makes you so upset. |
Quote:
|
All times are GMT -5. The time now is 03:26 AM. |