05-10-2013
i have run the second code before but the result were in irregular pattern
but the first code is the answer..thanks
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can convert a Lower case variable value to an upper case in the kron shell script. (3 Replies)
Discussion started by: dchalavadi
3 Replies
2. Shell Programming and Scripting
If user chosen to tolower then it should convert file name to lower or vice versa. when file names converted it should put into appropriate subdirectories.
e.g when files converted it then seperate them out with file etension where it will seperate them out . such as file.pdf, phone.doc both... (1 Reply)
Discussion started by: Alex20
1 Replies
3. UNIX for Dummies Questions & Answers
I have a file where some records have been updated the wrong way and need to fix it quickly since the amount can be alot.
Every record where any of the first 4 characters are in upper case need to be changed to lowercase.
Records can have '#' in position-1 for comments. These musn't be... (2 Replies)
Discussion started by: Browser_ice
2 Replies
4. Shell Programming and Scripting
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)
Discussion started by: usustarr
8 Replies
5. Shell Programming and Scripting
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)
Discussion started by: rockytodd
3 Replies
6. Shell Programming and Scripting
Hello Unix Gurus :
It would be really great if a solution can be found
Following is the condition on Solaris
Change all the records to upper case
ignore the case for records having "A2B2 " in them .
how can i use nawk or any other command
Following is the SAMPLE
INPUT... (6 Replies)
Discussion started by: tsbiju
6 Replies
7. Shell Programming and Scripting
The title pretty much defines the problem. I have text files that are all in caps. I would like to convert them to lowercase, but have the first letter of the first word in each sentence in uppercase.
I already have SED on the server for fixing / tweaking text files, but I'm open to other... (5 Replies)
Discussion started by: dockline
5 Replies
8. Shell Programming and Scripting
My awk (GNU Awk 3.1.8 on Ubuntu 12.04) seems to ignore case.
cat file
abc
ABC
aBc
123
awk '//&&//{print $0,"";next}{print $0,""}' file
My result:abc
ABC
aBc
123
Correct result:abc
ABC
aBc
123 (6 Replies)
Discussion started by: Jotne
6 Replies
9. Shell Programming and Scripting
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
10. UNIX for Dummies Questions & Answers
Hi,
I need to convert the hostname to uppercase and attach it to a string.
eg: $hostname output mymac
Final output should be Production.MYMAC (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT CENTOS
fcpatternbuild
FcPatternBuild(3) FcPatternBuild(3)
NAME
FcPatternBuild, FcPatternVaBuild, FcPatternVapBuild - Create patterns from arguments
SYNOPSIS
#include <fontconfig/fontconfig.h>
FcPattern * FcPatternBuild (FcPattern *pattern, ...);
FcPattern * FcPatternVaBuild (FcPattern *pattern, va_list va);
void FcPatternVapBuild (FcPattern *result, FcPattern *pattern, va_list va);
DESCRIPTION
Builds a pattern using a list of objects, types and values. Each value to be entered in the pattern is specified with three arguments:
1. Object name, a string describing the property to be added.
2. Object type, one of the FcType enumerated values
3. Value, not an FcValue, but the raw type as passed to any of the FcPatternAdd<type> functions. Must match the type of the second
argument.
The argument list is terminated by a null object name, no object type nor value need be passed for this. The values are added to `pattern',
if `pattern' is null, a new pattern is created. In either case, the pattern is returned. Example
pattern = FcPatternBuild (0, FC_FAMILY, FcTypeString, "Times", (char *) 0);
FcPatternVaBuild is used when the arguments are already in the form of a varargs value. FcPatternVapBuild is a macro version of FcPat-
ternVaBuild which returns its result directly in the result variable.
VERSION
Fontconfig version 2.10.95
31 8 2013 FcPatternBuild(3)