LinuxQuestions.org
Help answer threads with 0 replies.
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, 06:36 AM   #46
cbtshare
Member
 
Registered: Jul 2009
Posts: 619

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, 10:09 AM   #47
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,164

Rep: Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614Reputation: 2614
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 10:13 AM.
 
1 members found this post helpful.
Old 05-03-2012, 11:40 AM   #48
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,362

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
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, 12:43 PM   #49
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
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, 01:41 PM   #50
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
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, 02:30 PM   #51
cbtshare
Member
 
Registered: Jul 2009
Posts: 619

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 03:04 PM.
 
Old 05-04-2012, 02:50 PM   #52
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,362

Rep: Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004Reputation: 2004
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, 03:01 PM   #53
cbtshare
Member
 
Registered: Jul 2009
Posts: 619

Rep: Reputation: 42
lollllllll ohh my bad, edited
 
Old 05-06-2012, 06: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 11:59 PM


All times are GMT -5. The time now is 06:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration