06-10-2002
Convert text to numerical
Hi folks, I am trying to convert one character to a numeric format,
for example :
" 1" to number 1
Ups forgot to tell you .. !!! I am trying to do it with kornshell !!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I convert unix text files into readable text for windows.
Dave (1 Reply)
Discussion started by: nucca
1 Replies
2. Shell Programming and Scripting
I have some text data generated by a perl script and want to put it into an excel sheet. Is there a perl script that can do this for me, i.e, convert text data to excel? (1 Reply)
Discussion started by: Pavankk
1 Replies
3. UNIX for Dummies Questions & Answers
Hello Gurus,
I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem?
The input file example,
... (6 Replies)
Discussion started by: Unilearn
6 Replies
4. UNIX for Dummies Questions & Answers
I have a text file where the second column is a list of numbers going from small to large. I want to extract the rows where the second column is smaller than or equal to 0.0001.
My input:
rs10082730 9e-08 12 46002702
rs2544081 1e-07 12 46015487
rs1425136 1e-06 7 35396742
rs2712590... (1 Reply)
Discussion started by: evelibertine
1 Replies
5. Shell Programming and Scripting
Hello,
I have a text file(utf8-bom). I want convert to following format. Thank you.
1***hello 35345 test test666
test 77 ? - test666
6//77
2***ktest 765
3***john6666 net 565433
nebb
I want this format.
1***hello 35345 test test666 test 77 ? - test666 6//77
2***ktest 765... (4 Replies)
Discussion started by: kata33
4 Replies
6. Shell Programming and Scripting
Hello,
I have a text file(utf8-bom). I want convert to following format. Thank you.
1***hello 35345
29***hello test6
380***bill33
4327***hello test6
47829***hull55
65644***hello test6
I want this format.
1***hello 35345
29***hello test6
380***bill33
4327***hello test6 2... (8 Replies)
Discussion started by: kata33
8 Replies
7. Shell Programming and Scripting
Hi Gurus
I need urgent help to convert a flat log file into csv format to load into database.
Log looks like:
a=1
b=2
c=3
a=4
b=5
c=6
Only the values at right side of = will come into csv and it should create a new line once it receives "a" field. (8 Replies)
Discussion started by: sandipjee
8 Replies
8. Shell Programming and Scripting
In the below bash I am trying to rename eachof the 3 text files in /home/cmccabe/Desktop/percent by matching the numerical portion of each file to lines 3,4, or 5 in /home/cmccabe/Desktop/analysis.txt. There will always be a match between the files. When a match is found each text file in... (2 Replies)
Discussion started by: cmccabe
2 Replies
9. Shell Programming and Scripting
Hi,
Is there somebody there to post an idea on how to convert this 5 liner row to 1 liner or tab delimiter to be import to database.
Here the text file format:
Description: Description1
Link: https://www.google.com
Date: June 2, 2018
Time: 00:07:44
Age: 1 days ago
Description:... (2 Replies)
Discussion started by: lxdorney
2 Replies
10. UNIX for Beginners Questions & Answers
Hi.
I need an input file of a single word pr. line converted in into a list of random pairs.
i need input like this
word1
word2
word3
word4
to be outputted like this:
word3 word1
word2 word4
My attempt is a tedious while loop like this:
nfiles=$(cat inputfile | wc -l) ... (4 Replies)
Discussion started by: BotHead
4 Replies
LEARN ABOUT PHP
mb_convert_kana
MB_CONVERT_KANA(3) 1 MB_CONVERT_KANA(3)
mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
SYNOPSIS
string mb_convert_kana (string $str, [string $option = "KV"], [string $encoding = mb_internal_encoding()])
DESCRIPTION
Performs a "han-kaku" - "zen-kaku" conversion for string$str. This function is only useful for Japanese.
PARAMETERS
o $str
- The string being converted.
o $option
- The conversion option. Specify with a combination of following options.
Applicable Conversion Options
+-------+---------------------------------------------------+
|Option | |
| | |
| | Meaning |
| | |
+-------+---------------------------------------------------+
| | |
| r | |
| | |
| | Convert "zen-kaku" alphabets to "han-kaku" |
| | |
| | |
| R | |
| | |
| | Convert "han-kaku" alphabets to "zen-kaku" |
| | |
| | |
| n | |
| | |
| | Convert "zen-kaku" numbers to "han-kaku" |
| | |
| | |
| N | |
| | |
| | Convert "han-kaku" numbers to "zen-kaku" |
| | |
| | |
| a | |
| | |
| | Convert "zen-kaku" alphabets and numbers to |
| | "han-kaku" |
| | |
| | |
| A | |
| | |
| | Convert "han-kaku" alphabets and numbers to |
| | "zen-kaku" (Characters included in "a", "A" |
| | options are U+0021 - U+007E excluding U+0022, |
| | U+0027, U+005C, U+007E) |
| | |
| | |
| s | |
| | |
| | Convert "zen-kaku" space to "han-kaku" (U+3000 |
| | -> U+0020) |
| | |
| | |
| S | |
| | |
| | Convert "han-kaku" space to "zen-kaku" (U+0020 |
| | -> U+3000) |
| | |
| | |
| k | |
| | |
| | Convert "zen-kaku kata-kana" to "han-kaku kata- |
| | kana" |
| | |
| | |
| K | |
| | |
| | Convert "han-kaku kata-kana" to "zen-kaku kata- |
| | kana" |
| | |
| | |
| h | |
| | |
| | Convert "zen-kaku hira-gana" to "han-kaku kata- |
| | kana" |
| | |
| | |
| H | |
| | |
| | Convert "han-kaku kata-kana" to "zen-kaku hira- |
| | gana" |
| | |
| | |
| c | |
| | |
| | Convert "zen-kaku kata-kana" to "zen-kaku hira- |
| | gana" |
| | |
| | |
| C | |
| | |
| | Convert "zen-kaku hira-gana" to "zen-kaku kata- |
| | kana" |
| | |
| | |
| V | |
| | |
| | Collapse voiced sound notation and convert them |
| | into a character. Use with "K","H" |
| | |
+-------+---------------------------------------------------+
o $encoding
-The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
RETURN VALUES
The converted string.
EXAMPLES
Example #1
mb_convert_kana(3) example
<?php
/* Convert all "kana" to "zen-kaku" "kata-kana" */
$str = mb_convert_kana($str, "KVC");
/* Convert "han-kaku" "kata-kana" to "zen-kaku" "kata-kana"
and "zen-kaku" alpha-numeric to "han-kaku" */
$str = mb_convert_kana($str, "KVa");
?>
PHP Documentation Group MB_CONVERT_KANA(3)