Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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" | \
> awk -F '' '{ for (i = NF; i > 0; --i) { printf("%s", $i) } }'
dlroW olleH
Obviously this awk prints the same text - just in reverse order.
see man od, tr about their usage and flags
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.
Distribution: Fedora (typically latest release or development release)
Posts: 372
Rep:
Quote:
Originally Posted by LRob
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.
If you run the code on the terminal, you would get the answer yourself. This would be an excellent opportunity to learn and become proficient ... No point in asking others to give you the answer.
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.
That's not how the open source community works. People here are more than willing to help you solve your problems if only you don't sound like you're paying someone to do your job for you.
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!
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!
No worries. But where's the fun when you're going to ask somebody else figure out? Lol
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??
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!
No ... you made yourself VERY clear.
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.
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.
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.
Oh please don't think we're sitting at terminals turning red faced about your complete inability to do anything Linux. I do hope that if you have future questions, you'll ask them in a manner which the forum typically prefers. But for all that, I yield to whatever the collective accepts. If instant reaction to "Help Me!" posts are the rage, then so be it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.