01-30-2013
so everytime that 0a will be a newline characters? so everytime i can just directly cut last 2 characters is it?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: rajan_ka1
6 Replies
2. Programming
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)
Discussion started by: axes
5 Replies
3. Shell Programming and Scripting
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)
Discussion started by: insania
2 Replies
4. UNIX for Dummies Questions & Answers
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)
Discussion started by: alikims
2 Replies
5. UNIX for Dummies Questions & Answers
Hello,
Is there any utility around able to deal with the conversion of some EBCDIC coded string into an hexadecimal value?
Thanks (1 Reply)
Discussion started by: Indalecio
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: The_Archer
11 Replies
7. Programming
Hello all. I need help...
How can I cenvert this 42ec93df826c804ea531c56594db453d54daad4b to normal text? What convertor I have to use?
Thanks. (12 Replies)
Discussion started by: escudo
12 Replies
8. Shell Programming and Scripting
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)
Discussion started by: Amutha
1 Replies
9. Shell Programming and Scripting
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)
Discussion started by: Amutha
2 Replies
10. Shell Programming and Scripting
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
gfs2_convert
gfs2_convert(8) System Manager's Manual gfs2_convert(8)
NAME
gfs2_convert - Convert a GFS1 filesystem to GFS2
SYNOPSIS
gfs2_convert [OPTION]... DEVICE
DESCRIPTION
gfs2_convert is used to convert a filesystem from GFS1 to GFS2. Do not attempt to convert a GFS1 filesystem which is not clean - the
process of conversion will reinitialise the journals. We highly recommend that fsck.gfs is run successfully before attempting to convert a
filesystem. Many of the on-disk structures are identical between GFS1 and GFS2, so the conversion process updates the journals, a few items
of incompatible metadata (mostly indirect pointers and inodes) and adds the per-node directories required by the gfs2meta filesystem. The
conversion process is performed in-place and does not require any extra disk space so that it is possible to successfully convert a GFS1
filesystem that is completely full.
Always ensure you have a complete backup of the data on any filesystem before starting the conversion process.
OPTIONS
-h Help.
This prints out the proper command line usage syntax.
-q Quiet. Print less information while running.
-n No to all questions.
-V Print program Version information only.
Print out the current version name.
-v Verbose operation.
Print more information while running.
-y Yes to all questions.
By specifying this option, gfs2_convert will not prompt before making changes.
EXAMPLE
gfs2_convert /dev/vg0/lvol0
This will convert the Global File System on the block device "/dev/vg0/lvol0" to gfs2 format.
gfs2_convert(8)