LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-08-2012, 12:39 PM   #16
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037

That's almost exactly what my first suggestion does too, only I went with the explicit word "done" instead of an empty argument. Replace "done" with "" in the case structure and it will work the same way.

BTW, what grail said goes for me too. Sometimes we can be a bit brusque when it comes to that kind of thin. The suggestions we make are generally for good reasons, and are made to help you.

Last edited by David the H.; 05-08-2012 at 01:08 PM.
 
  


Reply



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
[SOLVED] bash and arrays disca Programming 3 07-27-2010 08:26 AM
Bash - Arrays and the for-loop Orangutanklaus Linux - General 2 10-23-2009 01:04 PM
Dynamic Arrays in Bash custangro Programming 5 06-19-2009 02:13 PM
Bash Arrays Simon256 Programming 2 02-17-2009 01:39 PM
[bash] How do I nest for arrays? blckleprd Programming 3 06-05-2008 10:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:17 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