Homework #6

Homework #6

Post by Jauder » Tue, 08 Nov 1994 13:12:58



--Jauder
--
====================================================================
Jauder Ho                        http://www.med.umich.edu/~jauderho/

Medical Center Information Technology (MCIT)
University of Michigan Medical Center, B1911 CFOB    
1414 Catherine Street, Ann Arbor, MI 48109-0704       (313) 936-4897
====================================================================
 
 
 

Homework #6

Post by B.A.McCau.. » Thu, 10 Nov 1994 02:05:45



>    I have a stupid question. Is 1GB = 1000MB or 1024 MB?

Yes :-)

Actually it's 1024*1024*1024 bytes but this doesn't stop unscrupulous
storage device manufactures (eg IBM) claiming it's 1024*1024*1000,
1024*1000*1000 or 1000*1000*1000 when they want to make their disks
sound like a better deal.
--

 .  _\\__[oo       from       | Phones: +44 121 471 3789 (home)

.  l___\\    /~~) /~~[  /   [ | PGP-fp: D7 03 2A 4B D8 3A 05 37
 # ll  l\\  ~~~~ ~   ~ ~    ~ |         A1 93 FE EA BE E3 2A 91


 
 
 

Homework #6

Post by Brian Hernac » Fri, 11 Nov 1994 11:59:35




>Brian,

>I never saw the original post, but do you not mean that
>1 MB (megabyte) is 1024 kilobytes and
>1 GB (gigabyte) is 1024 megabytes

Thats what I MEANT to post, but unfortunatley I did not
type what I meant. I did repost the correction, but I
don't think it made it to all of the cross-posted groups.

Thanks for the correction though,
Brian

--
---------------------------------------------------------------------


Ann Arbor, Mi

 
 
 

Homework #6

Post by Pierre Gaumo » Fri, 11 Nov 1994 23:20:50




>: One GB is 1024 kilobytes, to follow a nice power of 2 progression.
>:
>: --brian
>:
>: --
>Brian,

>I never saw the original post, but do you not mean that
>1 MB (megabyte) is 1024 kilobytes and
>1 GB (gigabyte) is 1024 megabytes

Since RAM memory is most of the time available in sizes that are power
of 2. An implicit convention became common usage.

1 Kb = 1024 b
1 Mb = 1024 Kb
1 Gb = 1024 Mb
etc...

It seems that not everyone follows that convention.

>--------------------------------------------------------------------------
>    Michael Callagan     Programmer Analyst            \ VISUALIZE /
>    ADP Dealer Services  Opus - APC                     \ WHIRLED /
>    Portland, Oregon     (503) 294-4200 x2124            \ PEAS  /

>--------------------------------------------------------------------------

 
 
 

Homework #6

Post by Michael Callag » Fri, 11 Nov 1994 06:04:25


: One GB is 1024 kilobytes, to follow a nice power of 2 progression.
:
: --brian
:
: --
Brian,

I never saw the original post, but do you not mean that
1 MB (megabyte) is 1024 kilobytes and
1 GB (gigabyte) is 1024 megabytes

--------------------------------------------------------------------------
    Michael Callagan     Programmer Analyst            \ VISUALIZE /
    ADP Dealer Services  Opus - APC                     \ WHIRLED /
    Portland, Oregon     (503) 294-4200 x2124            \ PEAS  /

--------------------------------------------------------------------------

 
 
 

Homework #6

Post by Stephen M. Du » Tue, 15 Nov 1994 07:50:17


$One GB is 1024 kilobytes, to follow a nice power of 2 progression.

   Wrong; one megabyte is 1024 kilobytes, and one gigabyte is
1024 megabytes (or 1 048 576 kilobytes).

   Note that many hard drive manufacturers conveniently define
megabyte as 1 000 000 bytes so that they can claim their drives
to be approximately 5% larger than they actually are.
--

----------------------------------------------------------------------------
Stephen M. Dunn, CNE, ACE, Sr. Systems Analyst, United System Solutions Inc.
104 Carnforth Road, Toronto, ON, Canada M4A 2K7          (416) 750-7946 x251

 
 
 

Homework #6

Post by Bill Vermilli » Tue, 15 Nov 1994 11:55:36






>>: One GB is 1024 kilobytes, to follow a nice power of 2 progression.
>>I never saw the original post, but do you not mean that
>>1 MB (megabyte) is 1024 kilobytes and
>>1 GB (gigabyte) is 1024 megabytes
>Since RAM memory is most of the time available in sizes that are power
>of 2. An implicit convention became common usage.
>1 Kb = 1024 b
>1 Mb = 1024 Kb
>1 Gb = 1024 Mb
>etc...
>It seems that not everyone follows that convention.

Including you :-)

The orignal post did ask about bytes.

Kb is usually kilobits, and KB is kilobytes.  

Upper case USUALLY designates larger sizes will lower case is
used for smaller.

10 Mb/sec is a typical net speed.
10 MB/sec is a good HD speed.

10 mb/sec is about 1/10000th as fast as I type.
(10 mb is 10 milli-bits/second or 1 bit every 100 seconds, 800
seconds/byte.

--

 
 
 

1. Homework!

I got this assignment last friday and need help again

someone gave me.....:       tr -dc { < " input_file" | wc -c
which works great! Im having trouble sending the output of this command
to
the rest of the script.
Im counting curly barces in a dummy file.
#!/bin/Bash
enter file name
read file
echo open culies ....
tr -dc { < "$file" | wc -c
echo closed culies
tr -dc } < "$file" |wc -c
echo To continue type "Y" or "y" or any other key to quit
read choice
if [ "$choice" = "Y" -o "$choice" = "y" ]; then
curly1
else
exit
fi
I'm trying to get it to say "matched" or "unmatched" after it reads the
amount of curlies in the dummy file???? I don't want to use gawk cuz I
havent taken it yet.Someone gave me a great! script and it works great
but its to professional looking only a pro would write something like
that .I tried inserting a while and an if statment but couldnt quit get
it to go
z=<output from curly count>
or
z=`expr ${ % 2`
or
if [ "$z" != "0" ]; then
echo unmatched
else
echo Matched
fi
something like this I think
thanks...Peter.............

2. cpio truncating inode numbers

3. homework

4. Linux is three times worse than Windows

5. Would it be impolite to post homework problem...?

6. How do I stop Kppp asking for root passwd?

7. Automated homework collection software?

8. Why does rpm (4.0-26mdk) not want to write package files after building ?

9. homework assignment (stuck)

10. Operating systems homework

11. 10th grader com sci homework request

12. help for homework

13. help with homework