0% found this document useful (0 votes)
34 views1 page

Signature of Scrutinizer Q.No. Solutions Marks Allotted 10.a)

Uploaded by

Satish B basapur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views1 page

Signature of Scrutinizer Q.No. Solutions Marks Allotted 10.a)

Uploaded by

Satish B basapur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

Signature of Scrutinizer

Subject Title: UNIX Shell Programming Subject Code: IS34


Q.No. Solutions Marks
Allotted
10.a)

10M

10.b) Perl program to convert a number from decimal to binary 10M


for ($i = 0; $i < @ARGV; $i++) {
$val = hex($ARGV[$i]);
printf("0x%x\t= %d\t= 0b%b\n", $val, $val, $val);
}

IS34-UNIX and Shell Programming (Scheme and Solution) Page 5

You might also like