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 the difference between grep and egrep?
What is the use of "$?" Sign in shell script?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What is bash command used for?
How do I start a shell script?
What is shell and shell script?
What does it mean to debug a script?
How can I send a mail with a compressed file as an attachment?
Which is better perl or shell scripting?
What happens on a system call?
How to print pid of the current shell?
Why do we write bin bash in shell scripts?
How do I run a shell script in powershell?
What is a file basename?
What language is bash written in?