Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
05-03-2012, 05:36 AM
|
#46
|
Member
Registered: Jul 2009
Posts: 645
Rep:
|
Quote:
Originally Posted by acid_kewpie
Why are we bothering to ask people not to help others cheat when they just do it anyway?
|
Yea your right, I wouldn't normally help with home work stuff, but I read through and saw solutions already presented and just decided it'll be nice little exercise to try.
|
|
|
05-03-2012, 09:09 AM
|
#47
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352
|
Quote:
Originally Posted by acid_kewpie
Why are we bothering to ask people not to help others cheat when they just do it anyway?
|
Especially when these people knew that they only had to wait two days before posting their own attempts:
Quote:
Originally Posted by arungala
its not possible to go through all this in one nite....i have to subit tomo
|
Last edited by dugan; 05-03-2012 at 09:13 AM.
|
|
1 members found this post helpful.
|
05-03-2012, 10:40 AM
|
#48
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by arungala
@suicidaleggrol:
x=$@ # copy parameters to variable x
result=$(echo $x | rev | cut -d ' ' -f 2-)
echo $result ${x##*' '}
can u pls explain line by line
|
Quote:
Originally Posted by arungala
@suicedaleggroll the thing is when typing 1 2 3 54 5 we get>>>45 3 2 1 5...i dont the the number 54 to be reversed
|
Did you even read my post? That's not my code, I was quoting whizje and pointing out the exact same thing you just said here.
|
|
|
05-03-2012, 11:43 AM
|
#49
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594
Rep: 
|
Quote:
Originally Posted by acid_kewpie
Why are we bothering to ask people not to help others cheat when they just do it anyway?
|
Because if you ask something you can also expect a no sometimes, else you don't have to ask. But in general I agree with you.
|
|
|
05-03-2012, 12:41 PM
|
#50
|
Member
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594
Rep: 
|
Quote:
Originally Posted by cbtshare
I have the least amount of lines so I win :d :d :d (jk)
|
It aren't the least amount of lines but it's a elegant solution. And I prefer elegance above shortness.
|
|
1 members found this post helpful.
|
05-04-2012, 01:30 PM
|
#51
|
Member
Registered: Jul 2009
Posts: 645
Rep:
|
Quote:
Originally Posted by whizje
It aren't the least amount of lines but it's a elegant solution. And I prefer elegance above shortness.
|
my code is more concise and to the point, thus is more efficient,which matters most 
Last edited by cbtshare; 05-04-2012 at 02:04 PM.
|
|
|
05-04-2012, 01:50 PM
|
#52
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Quote:
Originally Posted by cbtshare
?? loll..You cant even begin to comprehend my code, so what elegance are you to extrapolate from your void of knowlege? you took 4hrs to come up with an if statement lolllllll..
|
*cough* wrong guy *cough*
|
|
|
05-04-2012, 02:01 PM
|
#53
|
Member
Registered: Jul 2009
Posts: 645
Rep:
|
lollllllll ohh my bad, edited
|
|
|
05-06-2012, 05:22 AM
|
#54
|
LQ Newbie
Registered: May 2012
Posts: 19
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 01:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|