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 and shell script?
What language is shell scripting?
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
How do we delete all blank lines in a file?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
How to use arguments in a script?
write a shell script to check the failed jobs?
Why is it called a shell?
Explain about "s" permission bit in a file?
How are shells born?
What are zombie processes?
Devise a script that takes file name as arguement(which must present in the current directory)and locates from your home directory tree all thpath names of its links.Then mail the list to self.
How to calculate the number of passed arguments?
What are types of shells?