Dear friends,
I have hexadecimal data like this.
now i want to read each letter and convert to decimal format.
for example.:
from the below data first i have to read hex data 0 and convert to 4 bit decimal value ie 0000.
similarly second letter 8 decimal value is 1000.
like this.... (6 Replies)
HI
Hi I have a character string which contains some special characters and I need it to display as a hex string.
For example, the sample i/p string: ×¥ïA Å gïÛý and
the o/p should be : D7A5EF4100C5010067EFDBFD
Any pointers or sample code pls. (5 Replies)
I need to have my scripts import volume groups and mknod devices files. I have most of the script working but the device file needs to be in the format 0x??0000 (where the question marks are my HEX representations of the volume group number. I have the code below and the output it produces which... (2 Replies)
Hi,
I have a char buf,ch; and the buf is filled with the result from MySQL server which I get like this numbytes = recv(sock, buf, 1024, 0));I have the followingcode to display the results
printf("received %ld bytes:\n",numbytes);
for(c=0;c<numbytes;c++){
ch = (char)buf;
... (2 Replies)
Dear All PROs
Thanks in advance
need a shell for Decimal to hex conversion
input file (decimal values)
65,5,48,66,133,131,118,47
65,5,48,66,133,131,83,63
.
.
desire output should be (Hex value)... (11 Replies)
I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code
assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation
i'm getting the error below
$ sh script.sh
(standard_in) 1: syntax error... (1 Reply)
I'm trying to convert hex to dec and with the help of output i need to do the process. If i execute the below code
assetValue=8f
assetNavigation=$(echo "ibase=16; "$assetValue"" | bc)
echo $assetNavigation
i'm getting the error below
$ sh script.sh
(standard_in) 1: syntax error... (2 Replies)
i have this below string which i need to convert it to HEX. i have already tried it but it showing extra few things on it.. let me show what i have done and what is the output i am getting and what is the desired output
the input string is
"!\"\"\"\"\"\"\"!\"\"\"\"\"\"\""
which is... (4 Replies)
Hi,
Got the below code in this forum,
for i in `cat test`; do
printf "%16s\n" $(echo "ibase=10;obase=16;$i" | bc)
done
Understand, this will not give output with '0'. Need help to get the output with '0'.
Regards,
Siva (2 Replies)
Discussion started by: ksgnathan
2 Replies
LEARN ABOUT DEBIAN
mic-image-convertor
MIC-IMAGE-CONVERTOR(1) General Commands Manual MIC-IMAGE-CONVERTOR(1)NAME
mic-image-convertor - Convert a virtual machine image to a live image
SYNOPSIS
mic-image-convertor [options]
DESCRIPTION
mic-image-convertor can convert a virtual machine image to a live image, this is specially for developers, they will use VMWare player or
KVM or VirtualBox to run this image and do some changes in place, then they convert this changed image to a live image to run in a real
device.
mic-image-manager has a GUI tool for mic-image-convertor, you can use it if you prefer to use GUI instead of command line.
General OPTIONS--version show version number and exit
-h, --help show this help message and exit
-F SRCFORMAT, --source-format=SRCFORMAT Source image format, possible values are: raw, vmdk or vdi (default: automatically detect image
type).
-I SRCIMG, --source-image=SRCIMG Source image which was created by mic-image-creator or an image file system.
-T DSTFORMAT, --target-format=DSTFORMAT Target image format, possible values are: livecd and liveusb
-t TMPDIR, --tmpdir=TMPDIR Temporary directory to use (default: /var/tmp)
-o OUTDIR, --outdir=OUTDIR Output directory to use (default: current work dir)
-S SUFFIX, --suffix=SUFFIX Image name suffix (default: date stamp)
OPTIONS For Live USB-i, --interactive Directly write into a USB disk.
--fstype=FSTYPE File system type for live USB image, ext3 or vfat, the default is vfat.
--overlay-size-mb=OVERLAYSIZEMB Overlay size in MB as unit, it means how size changes you can save in your live USB disk.
Debug OPTIONS-d, --debug Output debugging information
-v, --verbose Output verbose progress information
--logfile=FILE Save debug information to FILE
EXAMPLES
Convert a VMWare image to a live CD image:
mic-image-convertor -I your-vmware-image.vmdk -T liveusb
EXIT STATUS
mic-image-convertor returns a zero exist status if it succeeds, otherwise return non-zero and print error message.
AUTHOR
Yi Yang, Anas Nashif, Jianfeng Ding
SEE ALSO mic-image-creator(1), mic-chroot(1), mic-image-writer(1), mic-livecd-iso-to-disk(1), mic-image-manager(1)perl v5.12.3 2011-05-31 MIC-IMAGE-CONVERTOR(1)