Hi,
I have files with all its characters in lower cases. I need to change them to "proper case" (starting char to be come Upper case). How can I? Pls suggest.
for e.g. xyz.txt should become Xyz.txt
TIA
Prvn (7 Replies)
Hello, I am new to this forums. I need help with shell, and ksh in particular. I have a case statement that does something if -k. So it looks like:
case $arg in
-k) PUT=y, SEND=1
Thats all good and dandy. But now I want to change it where whether or not the user puts -k or not, it will do... (2 Replies)
Using UNIX tools, but not using GAWK (NAWK is OK), is there a more elegant way to achieve this:
sed '
s/_a/_A/1
s/_b/_B/1
s/_c/_C/1
rest of alpahabet
'
I want to change the case of a single character in each string of a text file. The character will be matched by regex '_' and only... (2 Replies)
Hi all,
i have a data array as followes.
ARRAY=DFSG345GGG
ARRAY=234FDFG090
ARRAY=VDFVGBGHH
so on..........
i need all english letters to be change to lower case. So i am expecting to see
ARRAY=dfsg345ggg
ARRAY=234fdfg090
ARRAY=vdfvgbghh
so on........
If i have to copy this data in... (8 Replies)
Is there a command that can switch a character variable from UPPER case to lower case?
like
foreach AC ( ABC BCD PLL QIO)
set ac `COMMAND($AC)`
...
end
Thanks a lot! (3 Replies)
how can i do a case insensitive search/replace but keep the same case?
e.g., i want to change a word like
apple-pie to orange-cake
but for the first word if the first letter of the keyword or the letter after the - is capitalised i want to preserve that
e.g., if the before is:
... (5 Replies)
I'm trying to change the string cases for a particular column, but can't figure how do to it with sed. Example:
Strings (space as delimiter):
write group MYGROUP MySpecialGroup /local/users/mygroup
write group HISGROUP HisSpecialGroup /local/users/hisgroup
write group HerGroup... (3 Replies)
dear all,
i have file input
ABCDE_Asta_Key_Park,COJ050,10.142.3.150
C_BDEFG_City_Lake,C_BIR0,10.135.3.6
C_FDGEBIR_Axaudia,C_ABIR1,10.135.3.34
I want to change lowercase in to uppercase for all strings
output
ABCDE_ASTA_KEY_PARK,COJ050,10.142.3.150
C_BDEFG_CITY_LAKE,C_BIR0,10.135.3.6... (5 Replies)
Hi all,
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
LEARN ABOUT PHP
addcslashes
ADDCSLASHES(3) 1 ADDCSLASHES(3)addcslashes - Quote string with slashes in a C styleSYNOPSIS
string addcslashes (string $str, string $charlist)
DESCRIPTION
Returns a string with backslashes before characters that are listed in $charlist parameter.
PARAMETERS
o $str
- The string to be escaped.
o $charlist
- A list of characters to be escaped. If $charlist contains characters
,
etc., they are converted in C-like style, while
other non-alphanumeric characters with ASCII codes lower than 32 and higher than 126 converted to octal representation. When you
define a sequence of characters in the charlist argument make sure that you know what characters come between the characters that
you set as the start and end of the range.
<?php
echo addcslashes('foo[ ]', 'A..z');
// output: foo[ ]
// All upper and lower-case letters will be escaped
// ... but so will the []^_`
?>
<?php
echo addcslashes("zoo['.']", 'z..A');
// output: zoo['.']
?>
RETURN VALUES
Returns the escaped string.
CHANGELOG
+--------+---------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------+
| 5.2.5 | |
| | |
| | The escape sequences v and f were added. |
| | |
+--------+---------------------------------------------+
EXAMPLES
$charlist like "