Hello ,
I have the folowing scenario :
I have a text file as follows : (say name.txt)
ABC
DEF
XYZ
And I have one more xml file as follows : (say somexml.xml)
<Name>ABC</Name>
<Age>12</Age>
<Class>D</Class>
<Name>XYZ</Name>
<Age>12</Age>
<Class>D</Class>
<Name>DEF</Name>... (7 Replies)
Hi,
I have a file like this
(ADD_MONTHS((Substr(Trim(BOTH FROM Translate(Maximum(closeDa
------------------------------------------------------------
2007-06-30 00:00:00
I have a requirement where i need just the date.
When i do: tail -1... (2 Replies)
Hello, I am trying to write a script that will calculate the amount of data remaining in a storage volume. I'm running Tru64 Unix version 5.1B patch kit 6. The script is being run against an AdvFS domain. I am programming in Korn Shell version M-11/16/88f.
The basic idea is that I want to run df... (3 Replies)
I know you can remove trialing slashes using:
#echo "/tmp/one/two/three////" | sed "s,/$,,"
/tmp/one/two/three///
But I want to know how to make it remove all trialing flashes in the front, and in the start, so the end result is:
tmp/one/two/three
Anyone have any idea how to do this... (6 Replies)
I'm currently writing my sql results to a file and they have trailing spaces after each field. I want to get rid of these spaces and I'm using this code:
TVXTEMP=$(echo $TVXTEMP|sed -e 's/\ //g')
It doesn't work though. I'm not familiar with sedscript, and the other codes I've found online... (6 Replies)
Hi I have a simple request but can't find the answer. I want to remove trailing zeros, and in some cases the fullstops, from the input data. Example of input file:
FR002_15.000_20.000
SD475_5.000_10.500
FG5647_12.250_15.500
BH2463_30.555_32.000
Desired output file would be:
... (10 Replies)
Hi
I am trying to remove trailing space from a string.
value=${value%% }
It is not working. What might be the issue with the above snippet. (7 Replies)
Hi,
I have simply made a shell script to convert *.csv to *.xml file. Xml file is required for input to one tool. But i am getting space after last field. How can i remove it.
Shell script is as follows :-
if
then
echo ""
echo "Wrong syntax, Databse_update.sh... (6 Replies)
Discussion started by: stillrules
6 Replies
LEARN ABOUT HPUX
isalnum
ctype(3C)ctype(3C)NAME
ctype: isalnum(), isalpha(), isascii(), isblank(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(),
isxdigit() - classify characters according to type
SYNOPSIS DESCRIPTION
These functions classify character-coded integer values according to the rules of the coded character set identified by the last successful
call to (see setlocale(3C)). Each function is a predicate returning nonzero for true, zero for false.
If has not been called successfully, characters are classified according to the rules of the default ASCII 7-bit coded character set (see
setlocale(3C)).
is defined on all integer values; the other functions are defined for the range (EOF) through
RETURN VALUE
The functions return nonzero under the following circumstances; zero otherwise:
c is an alphanumeric (letters or digits).
c is a letter.
c is any ASCII character code between 0 and 0177, inclusive.
c is a blank character; that is, a space or a tab.
c is a control character (in ASCII: character codes less than 040 and the delete character(0177)).
c is a decimal digit (in ASCII: characters [0-9]).
c is a visible character (in ASCII: printing characters, excluding the space character(040)).
c is a lowercase letter.
c is a printing character.
c is a punctuation character (in ASCII: any printing character except the space character(040), digits, letters).
c is a character that creates whitespace in displayed text (in ASCII: space, tab, carriage return, newline, verti-
cal tab, and formfeed).
c is an uppercase letter.
c is a hexadecimal digit (in ASCII: characters [0-9], [A-F] or [a-f]).
If the argument to any of these functions is outside the domain of the function, the result is undefined.
EXTERNAL INFLUENCES
Environment Variables
The category determines the classification of character type.
International Code Set Support
Single-byte character code sets are supported.
WARNINGS
These functions are supplied both as library functions and as macros defined in the header. Normally, the macro versions are used. To
obtain the library function, either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in
parenthesis or take its address. The following example uses the library functions for and
AUTHOR
was developed by IBM, OSF, and HP.
SEE ALSO setlocale(3C), ascii(5), thread_safety(5).
STANDARDS CONFORMANCE ctype(3C)