3rd: Write a shell script program (conversion.sh) which has got a parameter ( a filename). In each lines of the file there are an information about the following conversion: from which scale do you...


shell script


3rd: Write a shell script program (conversion.sh) which has got a parameter ( a filename). In each lines of the file there are an information about the<br>following conversion: from which scale do you have to make the conversion into which scale and the list of numbers which should be converted. (e.g.<br>2,8,10,1010 - from binary convert to octal the binary numbers: 10 and 1010 ) Check the listed numbers whether they are appropriate or not (e.g. there is no<br>digit 2 or higher in a binary number, therefore in the line 2,8,31,1010 - 31 is a bad number )! If there is a mistake write

Extracted text: 3rd: Write a shell script program (conversion.sh) which has got a parameter ( a filename). In each lines of the file there are an information about the following conversion: from which scale do you have to make the conversion into which scale and the list of numbers which should be converted. (e.g. 2,8,10,1010 - from binary convert to octal the binary numbers: 10 and 1010 ) Check the listed numbers whether they are appropriate or not (e.g. there is no digit 2 or higher in a binary number, therefore in the line 2,8,31,1010 - 31 is a bad number )! If there is a mistake write "BAD" into the next place in the result.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here