Signature of Scrutinizer
Subject Title: UNIX Shell Programming Subject Code: IS34
[Link]. 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