Hello,
I have a korn shell string variable
str1 = "A,B,Z"
I would like to create another korn shell string variable
str2 = "letter = 'A' or letter = 'B' or letter = 'Z' "
Please help!
Thanks in advance
an UNIX newbie! (13 Replies)
Hey Guys,
Right i know how to alter a word to begin with a capital letter, i know how to remove unwanted characters and replace them with the relevant character however i don't now if there is a way to do them all in one line.
Code:
echo -n ${string:0:1} | tr a-z A-Z #convert first letter... (4 Replies)
I use otool on OS X to figure out the shared libraries that a binary uses. I run this command:
otool -L /Applications/Vidnik\ 0.13.0/Vidnik.app/Contents/MacOS/Vidnik
And it returns an output similar to this:
/Applications/Vidnik 0.13.0/Vidnik.app/Contents/MacOS/Vidnik:... (10 Replies)
Hi,
I have the string like this ". Start : 06:53:11 - MON JUL 05, 2010"
I need to print the part "06:53:11 - MON JUL 05, 2010"
How i can do this?
Thanks,
Lenova (2 Replies)
Write a shell program to display the position of the right - most character in a given input string.
Example :
Input : RAHUL
Output : L is in the 5th position
also tell me how to count length of string and how to find the position of specific character in left most side. (1 Reply)
Write a shell program to display the position of the right - most character in a given input string.
Example :
Input : RAHUL
Output : L is in the 5th position
also tell me how to count length of string and how to find the position of specific character in left most side.
Homework... (0 Replies)
I want to do the next
"I don't want to go school
because I'm sick today."
I want to join these two line but only when the first line is not more than 20 characters
and ended whit nothing or a comma and the second line not more than 15.
The 20 and the 15 can be change in the script.
I know... (10 Replies)
Hello
Could you help with small script:
How to split string X1 into 3 string
String X1 can have 1 or many strings
X1='A1:B1:C1:D1:A2:B2:C2:D2:A3:B3:C3:D3'
This is output which I want to have:
Z1='A1:B1:C1:D1'
Z2='A2:B2:C2:D2'
Z3='A3:B3:C3:D3' (5 Replies)
i have a string that am looking to extract all characters following 3 consecutiv numbers.
Example my string is J1705PEAN038TDMN, i need to get TDMN
My string can have multiple 3 consecutive numbers, i need what follows last occurance (9 Replies)
Discussion started by: gigagigosu
9 Replies
LEARN ABOUT PHP
transliterator_transliterate
TRANSLITERATOR_TRANSLITERATE(3) 1 TRANSLITERATOR_TRANSLITERATE(3)Transliterator::transliterate - Transliterate a string
Object oriented style
SYNOPSIS
public string Transliterator::transliterate (string $subject, [int $start], [int $end])
DESCRIPTION
Procedural style
transliterator_transliterate (mixed $transliterator, string $subject, [int $start], [int $end])
Transforms a string or part thereof using an ICU transliterator.
PARAMETERS
o $transliterator
- In the procedural version, either a Transliterator or a string from which a Transliterator can be built.
o $subject
- The string to be transformed.
o $start
- The start index (in UTF-16 code units) from which the string will start to be transformed, inclusive. Indexing starts at 0. The
text before will be left as is.
o $end
- The end index (in UTF-16 code units) until which the string will be transformed, exclusive. Indexing starts at 0. The text after
will be left as is.
RETURN VALUES
The transfomed string on success, or FALSE on failure.
EXAMPLES
Example #1
Converting escaped UTF-16 code units
<?php
$s = "u304Au65E9u3046u3054u3056u3044u307Eu3059";
echo transliterator_transliterate("Hex-Any/Java", $s), "
";
//now the reverse operation with a supplementary character
$supplChar = html_entity_decode('𝄞');
echo mb_strlen($supplChar, "UTF-8"), "
";
$encSupplChar = transliterator_transliterate("Any-Hex/Java", $supplChar);
//echoes two encoded UTF-16 code units
echo $encSupplChar, "
";
//and back
echo transliterator_transliterate("Hex-Any/Java", $encSupplChar), "
";
?>
The above example will output something similar to:
1
uD834uDD1E
SEE ALSO
Transliterator::getErrorMessage, Transliterator::__construct.
PHP Documentation Group TRANSLITERATOR_TRANSLITERATE(3)