<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Tue May 21, 2013 2:56 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Tue May 21, 2013 2:56 pm</pubDate>
  <lastBuildDate>Tue May 21, 2013 2:56 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5735#5735</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=115'&gt;Gordon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 28, 2005 4:57 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      No probs. You could try looking at the &quot;Advanced Bash Scripting Guide&quot; which is on the LXF70 DVD.&lt;br /&gt;
&lt;br /&gt;
Gordon</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5735#5735</comments>
                                        <author>Gordon</author>
                                        <pubDate>Thu Jul 28, 2005 4:57 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5735#5735</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5734#5734</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 28, 2005 4:53 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi,&lt;br /&gt;
&lt;br /&gt;
Im embarrested and angriy simple because i was given a half finished code that i thought was genuine to later find out that it had/has been cp by Wrox, i feel cheated out of trying to learn a new skill, in future rather than jumping in head first i shall do some home work first.&lt;br /&gt;
&lt;br /&gt;
BTW thanks</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5734#5734</comments>
                                        <author>RD</author>
                                        <pubDate>Thu Jul 28, 2005 4:53 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5734#5734</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5731#5731</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=115'&gt;Gordon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 28, 2005 4:19 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi RD, sorry to have caused you embarresment and anger. But I had also tried the code a few years ago myself from the Wrox book and it didn't work for me then either. Although the code from the book is copyright Wrox press, it is still under the GNU GPL licence, so you can still use it or modify it as long as you make such modifications available to others and acknowledge Wrox as the copyright holders.&lt;br /&gt;
&lt;br /&gt;
Don't let this put you off learning bash scripting though.&lt;br /&gt;
&lt;br /&gt;
With all due respect to Wrox though, &quot;Beginning Linux Programming&quot; may be worth a read. Would Linux Format consider doing a review of the latest edition?&lt;br /&gt;
&lt;br /&gt;
Nigel, The code from the book does have some of the same typoes, such as the &quot;cdttitle&quot; variable.&lt;br /&gt;
&lt;br /&gt;
I hope nobody feels too badly about this.&lt;br /&gt;
&lt;br /&gt;
Regards to all concerned. Gordon</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5731#5731</comments>
                                        <author>Gordon</author>
                                        <pubDate>Thu Jul 28, 2005 4:19 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5731#5731</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5583#5583</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 28, 2005 12:57 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      RD - well, at least you have learned something about shell scripts. And I have to admit, so have I - I hadn't used case statements in bash scripts before (although I use them all the time in C). So it hasn't been a complete waste of time.&lt;br /&gt;
You may find after a bit of research that you are free to use the script itself, but changing the copyright assignment is a definite no-no.&lt;br /&gt;
&lt;br /&gt;
And this is a good example of why SCO won't find any dodgy code in Linux - with development done so publicly, anything that isn't kosher gets outed very quickly  &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5583#5583</comments>
                                        <author>Nigel</author>
                                        <pubDate>Thu Jul 28, 2005 12:57 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5583#5583</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5581#5581</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Jul 28, 2005 12:24 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Gordon, after a quick google it would seem you was write and i had been given half finished stole code to finish as a result i will speak to the person who gave me the half finished code and to wrox about this matter, as a result i have had no choice but to edit and remove the copy right code from the forums and shall not be acceppting any more code from the person who was supose to &quot;help me understand the shell coding&quot; &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt; , this is an out right embaresment  &lt;img src=&quot;images/smiles/icon_redface.gif&quot; alt=&quot;Embarassed&quot; border=&quot;0&quot; /&gt; , Nigel it would seem that i have wasted your time and my own and was fooled into thinking that this was genuine.  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOT A HAPPY BUNNY  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_evil.gif&quot; alt=&quot;Evil or Very Mad&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5581#5581</comments>
                                        <author>RD</author>
                                        <pubDate>Thu Jul 28, 2005 12:24 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5581#5581</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5571#5571</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 27, 2005 10:58 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Does the code in the book have all the typos in it as well  &lt;img src=&quot;images/smiles/icon_question.gif&quot; alt=&quot;Question&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5571#5571</comments>
                                        <author>Nigel</author>
                                        <pubDate>Wed Jul 27, 2005 10:58 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5571#5571</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5570#5570</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=115'&gt;Gordon&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 27, 2005 10:09 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I thought I recognized this code. It seems to be the code from the book &quot;Beginning Linux Programming&quot;, Wrox Press, ISBN 1-874416-68-0, chapter 2, code starts on page 72 inmy copy and is copyrighted to Wrox Press 1996. Did K Windle write the original for Wrox?</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5570#5570</comments>
                                        <author>Gordon</author>
                                        <pubDate>Wed Jul 27, 2005 10:09 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5570#5570</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5569#5569</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 27, 2005 9:43 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi RD,&lt;br /&gt;
&lt;br /&gt;
the basic problem was that you haven't terminated the section above properly - check you have two semicolons at the end of line 324.&lt;br /&gt;
&lt;br /&gt;
I don't think the editor you use will make any difference (I use vi, mostly because I'm too lazy to learn anything else &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt; )</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5569#5569</comments>
                                        <author>Nigel</author>
                                        <pubDate>Wed Jul 27, 2005 9:43 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5569#5569</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5560#5560</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 27, 2005 7:28 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Here is more info on the error im getting&lt;br /&gt;
&lt;br /&gt;
Mini CD manager&lt;br /&gt;
cd_manager.sh: line 325: syntax error near unexpected token `)'&lt;br /&gt;
cd_manager.sh: line 325: `              q | Q)  quit=y;;'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
i've tryed in vi emacs and kdevelop and still getting the same error</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5560#5560</comments>
                                        <author>RD</author>
                                        <pubDate>Wed Jul 27, 2005 7:28 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5560#5560</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5559#5559</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Jul 27, 2005 7:02 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi Nigel&lt;br /&gt;
&lt;br /&gt;
First thanks for the help &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Now i've been getting the same problem as yourself ie won't let me quit how ever the original was wirtten with q | Q) quit=y;; and every time i tryed to run the script it keept giving errors &lt;img src=&quot;images/smiles/icon_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
also as it was written using kdevelop i felt it best to just leave the default settings ie #!/bin/sh or bash which ever you want &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt; i do know that this is normally located at the top of the shell script, any way what do you suggest as to the not quitting problem ?&lt;br /&gt;
&lt;br /&gt;
RD</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5559#5559</comments>
                                        <author>RD</author>
                                        <pubDate>Wed Jul 27, 2005 7:02 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5559#5559</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5500#5500</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 25, 2005 11:06 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Well, it doesn't loop for me - as posted, the script seems to work fine in that area... but you have fixed the typo from your earlier post &lt;img src=&quot;images/smiles/icon_smile.gif&quot; alt=&quot;Smile&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
The only problem I see with it now is that it won't let you quit from the main menu... &lt;br /&gt;
you need to change the section&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; more $title_file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get_return&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; q | Q&amp;nbsp; quit=y;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; *&amp;#41; echo &amp;quot;Sorry, choice not recognized&amp;quot;;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
near the end to read&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; b&amp;#41;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; more $title_file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; echo&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get_return;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; q | Q&amp;#41;&amp;nbsp; quit=y;;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; *&amp;#41; echo &amp;quot;Sorry, choice not recognized&amp;quot;;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
One tip - the line &lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
usually goes right at the top of the file, before any comments. Doesn't matter for users whose default shell is bash, but as written it throws up a heap of errors if run under csh. Moving the /bin/bash  line to the top sorts that out.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5500#5500</comments>
                                        <author>Nigel</author>
                                        <pubDate>Mon Jul 25, 2005 11:06 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5500#5500</guid>
                                      </item>
                                      <item>
                                        <title>Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5482#5482</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 25, 2005 6:47 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Sorry was in a bit of a rush so heres the script please run it then you will see the problems i seem to be having&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
# Tidy up and leave the application&lt;br /&gt;
&lt;br /&gt;
rm -f $temp_file&lt;br /&gt;
echo &amp;quot;Thank you for using this application &amp;#58;-&amp;#41;&amp;quot;&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5482#5482</comments>
                                        <author>RD</author>
                                        <pubDate>Mon Jul 25, 2005 6:47 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5482#5482</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: RE: Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5480#5480</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 25, 2005 6:29 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      near the start of the script &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5480#5480</comments>
                                        <author>RD</author>
                                        <pubDate>Mon Jul 25, 2005 6:29 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5480#5480</guid>
                                      </item>
                                      <item>
                                        <title>Re: RE: Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5476#5476</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=162'&gt;Nigel&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 25, 2005 5:31 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;RD wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;That was not a typo here is how it was suppose to be&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
sorry - you are setting cdtitle (one &quot;t&quot;) to the value of tmp without the commas, then testing cdttitle (two &quot;t&quot;s) against the value of tmp... &lt;br /&gt;
either one of these has a typo in it, or you're not showing us some code which is vital to sorting this problem (ie where you are setting cdttitle (with two &quot;t&quot;s)  &lt;img src=&quot;images/smiles/icon_exclaim.gif&quot; alt=&quot;Exclamation&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5476#5476</comments>
                                        <author>Nigel</author>
                                        <pubDate>Mon Jul 25, 2005 5:31 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5476#5476</guid>
                                      </item>
                                      <item>
                                        <title>RE: Re: Shell Loops me mad</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=5474#5474</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2319'&gt;RD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Mon Jul 25, 2005 5:21 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      That was not a typo here is how it was suppose to be&lt;br /&gt;
&lt;br /&gt;
while [ &quot;$cdttitle&quot; != &quot;q&quot; ] &lt;br /&gt;
do &lt;br /&gt;
echo -e &quot;Track $cdtrack, track title? \c&quot; &lt;br /&gt;
read tmp &lt;br /&gt;
cdtitle=${tmp%%,*} &lt;br /&gt;
if [ &quot;$tmp&quot; != &quot;$cdttitle&quot; ] ; then # Keeps looping here ??? &lt;br /&gt;
echo &quot;Sorry, no commas allowed&quot; &lt;br /&gt;
continue &lt;br /&gt;
fi &lt;br /&gt;
&lt;br /&gt;
if [ -n &quot;$cdttitle&quot; ] ; then &lt;br /&gt;
if [ &quot;$cdttitle&quot; != &quot;q&quot; ] ; then &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I had another look after posting it did not work then found out i missed a t in while [ &quot;$cdttitle&quot; != &quot;q&quot; ]  also &lt;br /&gt;
cdtrack=$((cdtrack+1)) &lt;br /&gt;
&lt;br /&gt;
worked just fine i am having another problem which when i get back home i will post at where i think the problem is &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks guys for the help</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=5474#5474</comments>
                                        <author>RD</author>
                                        <pubDate>Mon Jul 25, 2005 5:21 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=5474#5474</guid>
                                      </item></channel></rss>