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 |
What is gui scripting?
what are special characters and explain how does text varies by the usage of single quotes,double quotes and back quotes?
What is the significance of the shebang line in shell scripting?
A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.
What does $0 mean in shell script?
What is MUTEX?
How can I send a mail with a compressed file as an attachment?
What can scripts do?
What are the two files of crontab command?
what is the difference between writing code in shell and editor?
How do I read a .sh file?
Is cmd a shell?