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 shell environment?
Write down the syntax of "for " loop
How do I open the shell in cmd?
What is sed in shell script?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
What is computer cli?
When should shell programming/scripting not be used?
What is shell scripting?
Is shell scripting easy to learn?
How will you find the 99th line of a file using only tail and head command?
How do I run a shell script on a mac?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
Explore about environment variables?
How do you know which shell I am using?
What is a scripting language simple definition?