02-24-2012
How to get that information depends on your system. What is it?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I am new to this forum.I need a help in the following:
We receve pipe delimited file with
transaction ID,tran_date,Quest_cd,Ans_cd,ans_value.
Same transaction ID can be repeated with different quest_cd and ans_cd.
Basically I need to check if a perticular pair of quest_cd and ans_cd... (1 Reply)
Discussion started by: srichakra
1 Replies
2. Shell Programming and Scripting
Please help develop script for below requirement
-------Sample file-------------------------------
HSVSHOSTRECON 20090115011817BP
DARMAR60064966247003504720000000000000000000066626000000000000133000003D003463001332 ... (14 Replies)
Discussion started by: niraj_bhatt
14 Replies
3. Shell Programming and Scripting
How to validate a date and optionly a time in shell scripting when i get the date and time as pararmeters that sent out with the call of the file? (in my case sh union.sh `first parameter ,second parameter...` (4 Replies)
Discussion started by: tal
4 Replies
4. Shell Programming and Scripting
Hi,
Can anyone provide me the code snippet for EMail Address Validation.
User is going to enter the email address in form window. I need to validate the format is correct.
Thanks in Advance
BS (3 Replies)
Discussion started by: balajiora
3 Replies
5. Shell Programming and Scripting
Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it
This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies
6. Shell Programming and Scripting
Hi, I am looking for a solution for the following problem:
Im Using tcpdump within a shellskript started in a subshell by using brackets: ( /usr/sbin/tcpdump -i ... -c 1 )
- I want the outout of tcpdump saved in a variable
- Than tcpdump-Process in the Subshell should be killed
- and I... (6 Replies)
Discussion started by: 2retti
6 Replies
7. Shell Programming and Scripting
PICKUPDIR=/home/ready/
DROPDIR=/home/downloaded/
TODAY=$(date '+%d%m%y')
LOGFILE=xyz-$TODAY.log
###########
#FUNCTIONS#
###########
#function to perform file transfer to servercopy folder
opalO ()
{
cd $PICKUPDIR
for fileName in `ls -1 TES_ONE*`
do
cp $fileName $DROPDIR
done
} >>... (4 Replies)
Discussion started by: ravigupta2u
4 Replies
8. Shell Programming and Scripting
Hi All,
I am a newbie...I would like to have a function which ll check if a file contains valid strings before "=" operator. Just to give you my requirement:
assume my file has content:
hello= gsdgsd sfdsg sgdsg sgdgdg
world= gggg hhhh iiiii
xxxx= pppp ppppp pppp
my... (1 Reply)
Discussion started by: rtagarra
1 Replies
9. UNIX for Dummies Questions & Answers
I need help with one of my shell script. The script is working fine but i need to add two condition -
i need to get rid of all the below ftp messages and need to have only ftp completed or failed message.
example when i run the script i get below lines -
Connected to xxxx
220 (vsFTPd... (1 Reply)
Discussion started by: chandraprakash
1 Replies
10. Shell Programming and Scripting
hello every one
I wrote the script to validate all the urls from my server . sourcing text file which contains the list of urls and trying to check every url and based on response printing url is up or not. the issue when i use the below code with url is printing url exist and and in loop it's... (3 Replies)
Discussion started by: markjohn1
3 Replies
LEARN ABOUT ULTRIX
_toupper
conv(3) Library Functions Manual conv(3)
Name
toupper, tolower, _toupper, _tolower, toascii - translate characters
Syntax
#include <ctype.h>
int toupper(c)
int c;
int tolower(c)
int c;
int _toupper(c)
int c;
int _tolower(c)
int c;
int toascii(c)
int c;
Description
The functions and have as their domain the range of the function. If the argument to represents a lowercase letter, the output from the
function is the corresponding uppercase letter. If the argument to represents an uppercase letter, the result is the corresponding lower-
case letter.
The case of c depends on the definition of the character in the language database. Because the case of a character can vary between lan-
guage databases, the case of c depends on what language database is in use. Specifically, the case of arguments depends on what property
tables are associated the LC_CTYPE category. Property tables are associated with the LC_CTYPE category by a successful call to the func-
tion that includes the LC_CTYPE category. If no successful call to define LC_CTYPE has occurred or if the character case information is
unavailable for the language in use, the rules of the ASCII coded character set determine the case of arguments.
If the argument to the function does not have the uppercase attribute, returns the argument unchanged. Likewise, if the argument to the
function does not have the lowercase attribute, returns it unchanged.
The macros and have the same affect as and The difference is that the argument to the macros must be an ASCII character (that is, a charac-
ter in the domain -1 to 127) and the argument must have the appropriate case. Arguments to must have the uppercase attribute and arguments
to must the lowercase attribute. The result of supplying arguments to these macros that are outside the domain or do not have the appropri-
ate case is undefined. These macros operate faster than the and functions.
The macro converts its argument to the ASCII character set. The macro converts its argument by truncating the numerical representation of
the argument so that it is between -1 and 127. You can use this macro when you move an application to a system other than an ULTRIX system.
International Environment
LC_CTYPE If this environment variable is set and valid, uses the international language database named in the definition to determine
character classification rules.
See Also
ctype(3int), setlocale(3), getc(3)
conv(3)