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 language is bash written in?
Explain about echo command?
What is the lifespan of a variable inside a shell script?
how to get part of string variable with echo command only?
What is meant by $1 in shell script?
How can the contents of a file inside jar be read without extracting in a shell script?
What are different types of shell?
How to write a function?
How can you find out how long the system has been running?
What exactly is a shell?
Calculate a real number calculation directly from the terminal and not any shell script.
What is the use of .sh file?
What are the zombie processes?
How do I edit a .sh file?
How do I run a script from command prompt?