12-15-2010
Hi,
Thanks that works, further
I want to assign that value to some variable say U1 and want to define new user value by appending 'V' to that value.
For example.
user entered value is db then after using your provided command it shows DB, so
U1=DB (How to assign the "uppercase" output value to U1?)
U2 shoud be as 'DBV' (how to generate the new value as ''DBV" and assign to U2 ?)
With Regards
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
It will only accept one argument where it should be upper or lowercase. if user choose to convert filnames to upper case than it should convert to upper or vice versa. if no action taken by the user then should not do anything
any of the files in the current directory. (5 Replies)
Discussion started by: Alex20
5 Replies
2. Shell Programming and Scripting
Hello,
can sed be used to convert all letters of a file from uppercase to lowercase and vice versa?i know tr command can be used but with sed is it possible?
i came up with this :-
sed 'y///' file1
actually the above command is also not working! Please help me. Thanks in advance :) (6 Replies)
Discussion started by: salman4u
6 Replies
3. UNIX for Dummies Questions & Answers
i have this piece of small code that checks for *.CSV files.
NUMFILES=`ls -1 *.CSV | wc -l`
for filename in $(ls -1 *.CSV)
do
...
done
it works only if the files has an uppercase of *.CSV extension. however, when there is a file of the same type but has lowercase *.csv... (1 Reply)
Discussion started by: wtolentino
1 Replies
4. Shell Programming and Scripting
Hi,
I have the following file:
/* ----------------- ADP2DAILY_Box ----------------- */
insert_job: ADP2DAILY_Box
job_type: b
owner: mbprwork
permission: gx,wx
date_conditions: 1
days_of_week: mo,tu,we,th,fr
exclude_calendar: mtg_holidays
start_times: "1:00"
description: "Process Daily... (4 Replies)
Discussion started by: ramky79
4 Replies
5. Shell Programming and Scripting
listprocs.sh contains ps -ef | grep "swikar"
1) Write a shell script to convert an input file to all upper case. Name your shell script toupper.sh.
Hint: tr ' ' ' ' will convert all lower case letters to upper case
To use your script, try the following command:
cat... (1 Reply)
Discussion started by: swikar
1 Replies
6. Shell Programming and Scripting
Hi All,
I'm a newbie here, i'm just wondering is it possible to convert into uppercase the records in specific field?
ex.
table name = mytable
field1 field2 field3
abd erfdF fdsfdsfsd
how can i convert into uppercase the field2 using sybase?
Please advise,
... (2 Replies)
Discussion started by: nikki1200
2 Replies
7. Shell Programming and Scripting
Hi,
I need to copy files from a source directory to a destination directory in unix.
I'm using the file::copy for the actual copy.
The problem is that the source and dest directories are supplied by different users, who might type the name of the directories in various combinations of lower... (6 Replies)
Discussion started by: Furou
6 Replies
8. Shell Programming and Scripting
Hi All,
So I'm new to scripting and I've been put in a position to convert a bunch of files with specific extensions in a folder and all its subfolders to uppercase including their extension. I figure so far I could do something like this:
...
...
and then input $line into another bash... (12 Replies)
Discussion started by: ideal2545
12 Replies
9. Shell Programming and Scripting
Hi,
echo "Enter file name of input file list along with absolute path : "
read inputFileList
if
then
for string in `cat inputFileList`
do
echo $string
done
else
echo " file does not exist"
fi
From the above code, if the user enters a invalid file... (1 Reply)
Discussion started by: i.srini89
1 Replies
10. Shell Programming and Scripting
I am trying to allow a user to enter in text and then store that text in a variable $gene to run in an awk command in which those values are used to run some calculations. I am getting syntax errors however, when I try. Thank you :).
The awk runs great if it is a pre-defined file that is used,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT OSF1
towlower
towlower(3) Library Functions Manual towlower(3)
NAME
towlower, towupper - Convert uppercase and lowercase wide characters
LIBRARY
Standard C Library (libc)
SYNOPSIS
#include <wctype.h>
wint_t towlower ( wint_t wc);
wint_t towupper ( wint_t wc);
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
towlower(), towupper(): XSH5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the wide character to convert.
DESCRIPTION
The towlower() function converts the uppercase wide character specified by the wc parameter into the corresponding lowercase wide charac-
ter. The towupper() function converts the lowercase wide character specified by the wc parameter into the corresponding uppercase wide
character. The behavior of the towlower() and towupper() functions are affected by the LC_CTYPE category of the program's locale.
[Tru64 UNIX] In a locale where case conversion information is not defined, these functions determine the case of characters according to
the rules of the C locale.
RETURN VALUES
In the towlower() function, if the wc parameter contains an uppercase wide character that has a corresponding lowercase wide character,
that wide character is returned. Otherwise, the wc parameter is returned unchanged.
In the towupper() function, if the wc parameter contains a lowercase wide character that has a corresponding uppercase wide character, that
wide character is returned. Otherwise, the wc parameter is returned unchanged.
RELATED INFORMATION
Functions: conv(3), setlocale(3), towctrans(3), wctrans(3)
Standards: standards(5) delim off
towlower(3)