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
>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
Thanks for the correction though,
Brian
--
---------------------------------------------------------------------
Ann Arbor, Mi
>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
1 Kb = 1024 b
1 Mb = 1024 Kb
1 Gb = 1024 Mb
etc...
It seems that not everyone follows that convention.
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 /
--------------------------------------------------------------------------
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
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