LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 05-03-2012, 05:36 AM   #46
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42

Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 05-03-2012, 09:09 AM   #47
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,352

Rep: Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385Reputation: 5385
Quote:
Originally Posted by acid_kewpie View Post
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 View Post
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.
Old 05-03-2012, 10:40 AM   #48
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
Quote:
Originally Posted by arungala View Post
@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 View Post
@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.
 
Old 05-03-2012, 11:43 AM   #49
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 05-03-2012, 12:41 PM   #50
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by cbtshare View Post

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.
Old 05-04-2012, 01:30 PM   #51
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
Quote:
Originally Posted by whizje View Post
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.
 
Old 05-04-2012, 01:50 PM   #52
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
Quote:
Originally Posted by cbtshare View Post
?? 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*
 
Old 05-04-2012, 02:01 PM   #53
cbtshare
Member
 
Registered: Jul 2009
Posts: 645

Rep: Reputation: 42
lollllllll ohh my bad, edited
 
Old 05-06-2012, 05:22 AM   #54
arungala
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: 0
http://www.linuxquestions.org/questi...t-help-943381/ ..................help on this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash scripting question, homework related cybergeek11235 Linux - General 4 10-12-2008 10:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration