<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: bash shell error checking in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991638#M77541</link>
    <description>sorry my comp screwed up, i didnt realised it sent my msg 3 times....&lt;BR /&gt;&lt;BR /&gt;but yeh, i have exactly 18 hours to finish this thing (damn deadlines)&lt;BR /&gt;&lt;BR /&gt;r u able to do any of it by then?&lt;BR /&gt;&lt;BR /&gt;i hope u can&lt;BR /&gt;&lt;BR /&gt;i wont be able to thank u enough if u do&lt;BR /&gt;get back to me ASAP</description>
    <pubDate>Sun, 08 Jun 2003 04:52:56 GMT</pubDate>
    <dc:creator>Daniel K</dc:creator>
    <dc:date>2003-06-08T04:52:56Z</dc:date>
    <item>
      <title>bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991632#M77535</link>
      <description>hey there everyone&lt;BR /&gt;ive been working on this code (on unix) which reads a text file(which has student user names and marks etc), then i output real names, and total marks, averages etc&lt;BR /&gt;my problem is error checking tho&lt;BR /&gt;my arguments are&lt;BR /&gt;report.sh -e marks.txt &lt;BR /&gt;(which prints output, and count of grades and averages)&lt;BR /&gt;report.sh -s marks.txt&lt;BR /&gt;(which just prints the output)&lt;BR /&gt;&lt;BR /&gt;i need error messages for the following cases&lt;BR /&gt;*where the data file does not exist&lt;BR /&gt;*an incorrect command switch is used&lt;BR /&gt;*a command switch is not provided&lt;BR /&gt;*a data file is not provided&lt;BR /&gt;&lt;BR /&gt;can someone help me here, i will send u my source code, &lt;BR /&gt;the textfile is like this:&lt;BR /&gt;&lt;BR /&gt;*i had some smaller problems, my averages and counts of grades seem to count cumulatively, how to i get it to print just the final counts, or the last average?&lt;BR /&gt;*i also needed to sort the output from largest to smallest total marks (without using a temp file) how can this be done?&lt;BR /&gt;hope im not too much bother, can someone please look at this and help within the 24 hours, im under a strict deadline and im startin to panic, thanks everyone&lt;BR /&gt;hope ya's can help</description>
      <pubDate>Sun, 08 Jun 2003 00:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991632#M77535</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T00:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991633#M77536</link>
      <description>oh and here is the marks.txt file&lt;BR /&gt;&lt;BR /&gt;it is based on usernames and student numbers on my unix system&lt;BR /&gt;&lt;BR /&gt;but they all work, so its irrelevant to what i need</description>
      <pubDate>Sun, 08 Jun 2003 00:23:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991633#M77536</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T00:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991634#M77537</link>
      <description>&lt;BR /&gt;Okay, give me a few days to squeeze this in and I'll even optimize it for you.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Jun 2003 04:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991634#M77537</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-06-08T04:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991635#M77538</link>
      <description>A few days?&lt;BR /&gt;:(&lt;BR /&gt;&lt;BR /&gt;id hate to be a bother, but i need this done in less then 24 hours&lt;BR /&gt;&lt;BR /&gt;could u just work out how to do the sorting and error checking&lt;BR /&gt;&lt;BR /&gt;and if u have time the other things?&lt;BR /&gt;&lt;BR /&gt;please that would be great&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 08 Jun 2003 04:35:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991635#M77538</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T04:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991636#M77539</link>
      <description>A few days?&lt;BR /&gt;:(&lt;BR /&gt;&lt;BR /&gt;id hate to be a bother, but i need this done in less then 24 hours&lt;BR /&gt;&lt;BR /&gt;could u just work out how to do the sorting and error checking&lt;BR /&gt;&lt;BR /&gt;and if u have time the other things?&lt;BR /&gt;&lt;BR /&gt;please that would be great&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 08 Jun 2003 04:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991636#M77539</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T04:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991637#M77540</link>
      <description>A few days?&lt;BR /&gt;:(&lt;BR /&gt;&lt;BR /&gt;id hate to be a bother, but i need this done in less then 24 hours&lt;BR /&gt;badly......&lt;BR /&gt;could u just work out how to do the sorting and error checking&lt;BR /&gt;&lt;BR /&gt;and if u have time the other things?&lt;BR /&gt;&lt;BR /&gt;please that would be great&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Sun, 08 Jun 2003 04:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991637#M77540</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T04:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991638#M77541</link>
      <description>sorry my comp screwed up, i didnt realised it sent my msg 3 times....&lt;BR /&gt;&lt;BR /&gt;but yeh, i have exactly 18 hours to finish this thing (damn deadlines)&lt;BR /&gt;&lt;BR /&gt;r u able to do any of it by then?&lt;BR /&gt;&lt;BR /&gt;i hope u can&lt;BR /&gt;&lt;BR /&gt;i wont be able to thank u enough if u do&lt;BR /&gt;get back to me ASAP</description>
      <pubDate>Sun, 08 Jun 2003 04:52:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991638#M77541</guid>
      <dc:creator>Daniel K</dc:creator>
      <dc:date>2003-06-08T04:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991639#M77542</link>
      <description>&lt;BR /&gt;I'll try to get this to you before I go to sleep tonight. I'm currently hung-up on some bash array processing. I'd send you what I've whipped up so far, but I've lost connectivity to my work environments.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 00:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991639#M77542</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-06-09T00:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991640#M77543</link>
      <description>&lt;BR /&gt;This is what I have so far.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the grade counters are not incrementing and I haven't even touched the averaging and sorting logic.</description>
      <pubDate>Mon, 09 Jun 2003 05:16:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991640#M77543</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-06-09T05:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: bash shell error checking</title>
      <link>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991641#M77544</link>
      <description>I'm really sorry about the delay.&lt;BR /&gt;&lt;BR /&gt;Revision 2 is attached. 50% rewritten.&lt;BR /&gt;&lt;BR /&gt;Grade counts and overall average included. Still not sure how to sort the grades yet.&lt;BR /&gt;&lt;BR /&gt;For whatever reason the grades array would not propogate to the get_grade function. So instead of trying to get this function to increment each grade element, I decided to have the parent FOR loop increment the elements using the return code of the function as the index.&lt;BR /&gt;&lt;BR /&gt;I'm sure you'll have a lot of questions about what is what and how it works. So do ask.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Jun 2003 23:02:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/bash-shell-error-checking/m-p/2991641#M77544</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-06-09T23:02:48Z</dc:date>
    </item>
  </channel>
</rss>

