Could someone tell me how I can simplify the script that follows!!!
I know that there must be a way how to
grep Average from sar01..................
sar02 .......................
sar03.......................
sar04... (3 Replies)
Hi,
I have file name (abcd001). I want to extract on the alphabets from this file name. I don't want the numeric part of it. Once i extract the alphabets the i can search for all those file. Could anyone help on this. Thanks in advance (2 Replies)
Hi Guys,
Bit new to Unix shell scripting so this question might seems little kiddish for you.
what im trying to achieve here is :
I have file which is compressed like Account_52320090605076_log.Z
so in my shell script i call this file also as one of my parameters
like
... (4 Replies)
echo -n "read this also:"
read NewAuthor
if ]' ) ] ; then
echo "its a digit"
else
echo "something else"
fi
Hey guys , i am trying to do a search to check if the input is using alphabets and nothing else. I tried using ] and ] but none seems to work
When i use digit, it read 22.k... (5 Replies)
filter the ones (ex:>1279_17_27_F3) that have 50letters (ABABABACACACACACAADADADADABABABABAACACACACACACAACAC) in input. And others that are less than 50 have to be ignore and the ones with more than 50 have to trimmed to first 50 letters.
Thanx
>1279_16_1960_F3
A
>1279_16_2010_F3
BCCC... (2 Replies)
Hi Friends,
I have a series of alphabets like this
AGCAA
The values inside the square brace indicate that either of them can be present at that position. And those ones without a brace, means that they are the only ones that could be printed at that location.
Now, I would like to know... (5 Replies)
Hi all, I have column 2 full of values like HIVE4A-56 and HIVE4-56. I want to convert all values like HIVE4A-56 to HIVE4-56.
So basically I want to delete all single alphabets before the '-' which is always preceded by a number. Values already in the desired format should remain unchanged... (4 Replies)
Thank you for 4 looking this post.
We have a tab delimited file where we are facing problem in a lot of funny character. I have tried using awk but failed that is not working.
In the 5th field ID which is supposed to be a integer only of that file, we are getting corrupted data as below.
I... (12 Replies)
Hello,
My goal is the make all x times repeated lines into a single line.
I need to attain the expected output with sed -i , I need to overwrite the MyFile
MyFile:
Hello World
Welcome
Hello World
Welcome Back
This is my test
Expected output:
Hello World
Welcome
Welcome Back
This is... (6 Replies)
Discussion started by: baris35
6 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)