10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have column 5 in a file which contains string like this for ex.
So I do by
data = )]
ValueError: invalid literal for int() with base 10: 'R'
Can someday tell me how to convert this column into int successfully.
Thank You in... (7 Replies)
Discussion started by: rossi
2. Shell Programming and Scripting
can someone help me in converting hex streams to decimal values using perl script
Every hex value in the above stream should be converted in to decimal and separated by comma.
The output should be: 12,07,172,20,00,22,118 (2 Replies)
Discussion started by: Arun_Linux
3. Shell Programming and Scripting
i want to convert number 5860533159 to hexadecimal. i need to use perl.
$foo = 5860533159;
$hexval3 = sprintf("%#x", $foo);
i am getting value as 0xffffffff.
i need to get value as 0x15D50A3A7. when i converted using google calculator, i got the correct value, expected... (9 Replies)
Discussion started by: asak
4. Shell Programming and Scripting
I woild like to convert hex on KSH not BASH:
I tried to use:
it works on bash - Output is '1' but not on ksh.
please advice on the right syntax.
Thanks. (4 Replies)
Discussion started by: LiorAmitai
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
Discussion started by: sehang
6. Shell Programming and Scripting
Please Help Me! about the problem down under.
I have 2 files with nearly the same characteristics, I have to convert one to the other format or the other format to one's format. I want to write it with awk.
The first file contain lines like this:
The other file contain... (4 Replies)
Discussion started by: Axel82
i am converting application from 32-bit to 64-bit on Solaris.
How can I convert "DWORD" on Solaris 64-bit to int.
Thanks. (1 Reply)
Discussion started by: amit_27
i want to convert Hex value To EBCDIC value.
i tried to convert hex to ascii and then to ebcdic but it doesn't give desired results .
it doesn't give corresponding ebcdic value instead it gives some junk values.
87... (6 Replies)
Discussion started by: junaid.nehvi
9. Shell Programming and Scripting
I want to convert below Hex value to Dec value in each column .How to do it ? This data is in a 1 file.
7530 7d3f (6 Replies)
Discussion started by: Nayanajith
10. Shell Programming and Scripting
i want to read a text file whose content(single line) will be a number like 1 or 2 or 3 ..... what i want to do is to read the file and increment the content of the file, using unix scripting.
Senthil Kumar Siddhan. (2 Replies)
Discussion started by: senthilk615