1.Write a script, which converts a number from binary to
hexadecimal format or vice versa.



1.Write a script, which converts a number from binary to hexadecimal format or vice versa...

Answer / 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

More Shell Script Interview Questions

how to separate the even and odd number generated from one file to two separate file i.e. even numbers in file1.txt and odd numbers in file2.txt

4 Answers   Infosys,


how is the oppurtunities for unix in the software

1 Answers  


How to take input values from the user?

4 Answers  


What does the sh command do?

0 Answers  


What are the types of script?

0 Answers  






What is the significance of the shebang line in shell scripting?

0 Answers  


What is computer cli?

0 Answers  


how can you execute the shell scripts?

4 Answers  


How do I set bash as default shell mac?

0 Answers  


What are the different kinds of loops available in shell script?

3 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


determine the output of the following command: echo ${new:-variable}

0 Answers  


Categories