12-22-2015
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Could anyone tell me how to write a C shell script according to the following requirement.
Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of hours/minutes it represents so:
Note: you are required to check exception... (1 Reply)
Discussion started by: Ringo
1 Replies
2. Shell Programming and Scripting
I want to make a script to read a list of ip addresses from a file then convert those ip addresses to ip number.
ip number is made by removing the dots then transfer to a number , so the ip number transfered to binary then to decimal which will represents the ip number 0 : 4294967295
Also I... (17 Replies)
Discussion started by: moutaz1983
17 Replies
3. Shell Programming and Scripting
hi ,
i need a script to convert number into hexadecimal base
for example: 237=>ED
it s very important for me thank you in advance for you help (5 Replies)
Discussion started by: mips
5 Replies
4. Shell Programming and Scripting
Hi,
I am using awk to get particular dates in seconds and the output am getting is like 1.28071e+09.
How can I convert it to number format.
Can anyone help me out?
Thanks in advance..! (7 Replies)
Discussion started by: Kattoor
7 Replies
5. Shell Programming and Scripting
Looking for a simple way to convert ranges to a numerical sequence that would assign the original value of the range to the individual numbers that are on the range.
Thank you
given data
13196-13199 0
13200 4
13201 10
13202-13207 3
13208-13210 7
desired... (3 Replies)
Discussion started by: jcue25
3 Replies
6. Shell Programming and Scripting
Hi gurus,
I have a weird requirement. I need to convert the number to english lecture.
I have 1.2 ....19 numbers
I need to convert to first second third fourth, fifth, sixth...
Is there any way convert it using unix command?
thanks in advance. (8 Replies)
Discussion started by: ken6503
8 Replies
7. Shell Programming and Scripting
Hello,
i'm trying to write a script sh to convert the rights of a folder or file in a number.
Explain:
ls -l = rwxrwxrwx
so i must display 777.
Do you known where i can find so convert script
Thanks
Use code tags, thanks. (11 Replies)
Discussion started by: steiner
11 Replies
8. Shell Programming and Scripting
I have data as below
"ROWS merge process complete. thousand rows changed"
I need to get a variable assigned the value of 1000. I mean convert the string thousand to 1000.
Any help or pointer.
Please use CODE tags as required by forum rules! (6 Replies)
Discussion started by: dsravanam
6 Replies
9. Shell Programming and Scripting
I read in two numbers from a user but the number is a string.
#!/bin/bash
read -p "Enter first number: " num1
read -p "Enter second number: " num2
I know you can use the the "expr" or "bc" command to automatically convert the string to a number then add them together. But I don't want to add... (10 Replies)
Discussion started by: Loc
10 Replies
10. Shell Programming and Scripting
Hello Guys,
I have a floating point number 1.14475E+15 I want to convert this number in to full number (Integer or Big integer). I tried couple of functions it did not work. When I use INT=${FLOAT/.*} I am getting value as 1. I don't want a truncated value
#!/bin/bash
#... (9 Replies)
Discussion started by: skatpally
9 Replies
LEARN ABOUT CENTOS
th_uni2macthai
thai/thwchar.h(3) libthai thai/thwchar.h(3)
NAME
thai/thwchar.h -
Wide char support for Thai.
SYNOPSIS
Macros
#define THWCHAR_ERR (~(thwchar_t)0)
Wide-character value indicating error.
Typedefs
typedef wchar_t thwchar_t
Thai character type for storing Unicode character.
Functions
thwchar_t th_tis2uni (thchar_t c)
Convert character code from TIS-620 to Unicode.
int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_t n)
Convert string from TIS-620 to Unicode.
thwchar_t th_winthai2uni (thchar_t c)
Convert character code from Thai Windows extended code to Unicode.
thwchar_t th_macthai2uni (thchar_t c)
Convert character code from Mac Thai extended code to Unicode.
thchar_t th_uni2tis (thwchar_t wc)
Convert character code from Unicode to TIS-620.
int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_t n)
Convert string from Unicode to TIS-620.
thchar_t th_uni2winthai (thwchar_t wc)
Convert character code from Unicode to Thai Windows extended code.
thchar_t th_uni2macthai (thwchar_t wc)
Convert character code from Unicode to Mac Thai extended code.
Detailed Description
Wide char support for Thai.
Function Documentation
thwchar_t th_macthai2uni (thchar_tc)
Convert character code from Mac Thai extended code to Unicode.
Parameters:
c : Mac Thai character/glyph to convert
Returns:
Corresponding Unicode code
thwchar_t th_tis2uni (thchar_tc)
Convert character code from TIS-620 to Unicode.
Parameters:
c : TIS-620 character to convert
Returns:
Corresponding Unicode code
int th_tis2uni_line (const thchar_t *s, thwchar_t *result, size_tn)
Convert string from TIS-620 to Unicode.
Parameters:
s : source TIS-620 string (null-terminated)
result : buffer for storing resulting Unicode string
n : size of result buffer (as number of elements)
Returns:
the length of the output Unicode string
thchar_t th_uni2macthai (thwchar_twc)
Convert character code from Unicode to Mac Thai extended code.
Parameters:
wc : Unicode code to convert
Returns:
Corresponding Mac Thai extended code, or TH_ERR if conversion is impossible
thchar_t th_uni2tis (thwchar_twc)
Convert character code from Unicode to TIS-620.
Parameters:
wc : Unicode character to convert
Returns:
Corresponding TIS-620 code, or TH_ERR if conversion is impossible
int th_uni2tis_line (const thwchar_t *s, thchar_t *result, size_tn)
Convert string from Unicode to TIS-620.
Parameters:
s : source Unicode string (null-terminated)
result : buffer for storing resulting TIS-620 string
n : size of result buffer (as number of elements)
Returns:
the length of the output TIS-620 string
Note that, since the conversion is lossy, some characters in the convesion result may be TH_ERR, indicating conversion error.
thchar_t th_uni2winthai (thwchar_twc)
Convert character code from Unicode to Thai Windows extended code.
Parameters:
wc : Unicode code to convert
Returns:
Corresponding Thai Windows extended code, or TH_ERR if conversion is impossible
thwchar_t th_winthai2uni (thchar_tc)
Convert character code from Thai Windows extended code to Unicode.
Parameters:
c : Thai Windows character/glyph to convert
Returns:
Corresponding Unicode code
Author
Generated automatically by Doxygen for libthai from the source code.
Version 0.1.14 Tue Jun 17 2014 thai/thwchar.h(3)