So, I have a massive file with thousands of columns
I want a list of the headers in one column in another file.
So I need to strip off the top line (can use head-1)
But how can I convert from this format:
A B C D E F G
to
A
B
C
D
E
F
G (6 Replies)
Hi Experts,
The question may look very silly by seeing the title, but please have a look at it clearly.
I have a text file where the first 5 columns in each row were supposed to be attributes of a sample(like sample name, number, status etc) and the next 25 columns are parameters on which... (3 Replies)
Is there anyway to use awk to add a first column to my data that automatically goes from 1 to n , where n is the numbers of my rows?:confused: (4 Replies)
Hi Friends,
I have a single column data like below.
1
2
3
4
5
I need the output like below.
0
1
2
3
4
where each row (including first row) subtracting from first row and the result should print below like the way shown in output file.
Thanks
Sid (11 Replies)
Hi everyone,
I have a data file in which the data is stored in event blocks. What I would like to get is that the same file with every data row starting with the number of event block. So here is two event blocks from my file:
<event>
-2 -1 0 0 0 501 0.00000000000E+00
... (2 Replies)
Split column data if the table has n number of column's with some record then how to split n number of colmn's line by line with records
Table
---------
Col1 col2 col3 col4 ....................col20
1 2 3 4 .................... 20
a b c d .................... v
... (11 Replies)
Hi Experts,
In short : Need to split file when field in column 5 is blank and need to generate two file in which column 5 is blank and other in which column 5 has values along with other rows and column data
My issue is i am not able to get header for column from raw file into new file which... (1 Reply)
Hi,
I am trying to split the following output into two columns, where each column has Source: Destination:
OUTPUT TO FILTER
$ tshark -r Capture_without_mtr.pcap -V | awk '/ (Source|Destination): /' | more
Source: x.x.x.x
Destination: x.x.x.x
Source:... (2 Replies)
Discussion started by: sand1234
2 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)