Display the equivalent number of bytes using base tenz


Problem

Bash script named units.sh, that takes a single command-line argument, which is a number of bytes. The script should then display the (roughly) equivalent number of bytes using both the base ten, and the binary, SI prefixes. If the number of bytes is less than 1,000 , then the script should simply display the number of bytes. If the number of bytes is at least 1,000 , then both the base ten and binary outputs should have the format Www.fff units where www is at most 3 digits and represents the whole portion, fff is exactly 3 digits and represents the fractional portion, and units are the appropriate units. 4.1 Error handling An appropriate error message should be displayed if the script is invoked without exactly one command-line argument.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Display the equivalent number of bytes using base tenz
Reference No:- TGS03256955

Expected delivery within 24 Hours