10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi to all,
May someone help me with the following.
The awk script below is part of a bigger awk script, and this part attempts to print an Ip address that is in hex format in decimal format. I'm trying with following code but
I'm getting 0.0.0.0 and the correct answer is 192.168.140.100
... (9 Replies)
Discussion started by: Ophiuchus
2. Shell Programming and Scripting
I have a file of the form
num 0.12 num num
num 25.53 num num
num 7.82 num num
and I want to convert the 2nd field of each line adding a "0" at the numbers >= 0 and < 10 so the output will have the form:
num 00.12 num num
num 25.53 num num
num 07.82 num... (10 Replies)
Discussion started by: phaethon
3. Shell Programming and Scripting
hi i want to convert date procured from sone operation which will be in 24hr format to 12 hr format displaying AM and PM
# date -d @1362545068
Tue Mar 5 23:44:28 EST 2013
this Tue Mar 5 23:44:28 EST 2013
i want to convert it so that output is as below
Tue... (2 Replies)
Discussion started by: vivek d r
4. IP Networking
i want to get the hostname for the specified IP address.
# host www.google.com
www.google.com has address 126.96.36.199
www.google.com has address 188.8.131.52
www.google.com has address 184.108.40.206
www.google.com has address 220.127.116.11
www.google.com has address... (3 Replies)
Discussion started by: kavitha rao
5. Shell Programming and Scripting
I have searched and the answers I have found thus far have led me to this point, so I feel I am just about there.
I am trying to convert a column of hexadecimal to decimal values so that I can filter out via grep just the data I want. I was able to pull my original 3 character hex value and... (10 Replies)
Discussion started by: PCGameGuy
6. Shell Programming and Scripting
Dear All PROs
Thanks in advance
need a shell for Decimal to hex conversion
input file (decimal values)
desire output should be (Hex value)... (11 Replies)
Discussion started by: The_Archer
7. Shell Programming and Scripting
Can anyone please help me ascci to decimal conversion in bash
I have a file which contains stream of numbers like this,these are ascci values
I want to covert it to its actual value like upper code's decimal is
"Have a Nice Day!"
... (15 Replies)
Discussion started by: sunilmenhdiratt
8. Shell Programming and Scripting
I have a file with below format...
And I want to check the last column. If the decimal value of the last column is below 50, I need that column else ignore that column.
Can anyone help me out? (3 Replies)
Discussion started by: mziaullah
9. Shell Programming and Scripting
in ksh, how do i format a decimal number (e.g 3381.19) to integer (e.g 3381). This number is average time response for server in millisec and i wanted to display it in a more readable format i.e in seconds without any decimals.
thanks in advance. (2 Replies)
Discussion started by: cesarNZ
10. Shell Programming and Scripting
Hi frnds :)
I need a small help...
I have a very long file containing 20 digits decimal number which i want to convert into the corresponding 16 digit hexadecimal values.
File looks like....
I tried the script
for i... (7 Replies)
Discussion started by: vanand420