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

what is the difference between cmp and diff commands

2 Answers   Amazon, CTS,


What is batch file programming?

0 Answers  


What is in a script?

0 Answers  


What are the advantages of using shell scripts?

0 Answers  


What are the three main forms of enabling debugging in a shell script?

6 Answers   ADC, Wipro,






Is powershell a language?

0 Answers  


I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?

1 Answers  


Explain about gui scripting?

0 Answers  


What does echo $0 do?

0 Answers  


Explain how you Automate your application using Shell scripting.

0 Answers   MAHINDRA,


How do I run a script on mac?

0 Answers  


is there any command to find user password?

4 Answers  


Categories