1.Write a script, which converts a number from binary to
hexadecimal format or vice versa.
Answer Posted / pradipta
echo 'obase=16 ; ibase =2 ; binaryno'|bc #print hexadecimal
echo 'obase=2 ; ibase=16; hexa no'|bc #print binary no
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is echo in shell?
Explain about the slow execution speed of shells?
Explain about return code?
What is bash used for?
What are the different variables present in linux shell?
What is the syntax of "nested if statement" in shell scripting?
I have 2 files and I want to print the records which are common to both.
What is the significance of $#?
What is the use of "$#" in shell scripting?
What is the syntax of while loop in shell scripting?
Write down the syntax for all the loops in shell scripting.
Why is it called a shell?
Which shell is the best?
What does $@ mean in shell?
What is basename in shell script?