10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a function that is supposed to check for user processes and wait for 0 count before exiting the function. I am sure I have more than one issue in my code, but the stumbling block right now is that I am trying to convert the value of my variable from a string to integer.
process_count... (10 Replies)
Discussion started by: MIA651
10 Replies
2. Shell Programming and Scripting
I am on HP-UX using ksh in the script.
MaxSal=`sqlplus -silent /nolog <<EOF
connect / as sysdba
whenever sqlerror exit sql.sqlcode
set pagesize 0 feedback off verify off heading off echo off
select max(sal) from emp1;
select max(sal) from emp2;
select max(sal) from emp3;
exit;
EOF`... (3 Replies)
Discussion started by: bang_dba
3 Replies
3. UNIX for Dummies Questions & Answers
Hi All,
I am trying to to compare a string variable with a string literal inside a loop but keep getting the
./testifstructure.sh: line 6:
#!/bin/sh
BOOK_LIST="BOOK1 BOOK2"
for BOOK in ${BOOK_LIST}
do
if
then echo '1'
else
echo '2'
fi
done
Please use next... (1 Reply)
Discussion started by: daveu7
1 Replies
4. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
is there an easy way to convert integer to string in bash?
I have numbers like 1, 2, ..., 112, ...
and I would like to get
001 002 003 004 ...
Thank you,
Sarah (4 Replies)
Discussion started by: f_o_555
4 Replies
6. Shell Programming and Scripting
Hi everyone,
I would like to know how to convert an integer to a string. for instance if i=1 i would like to creat a variable called constant1. i want to do this in a for loop so for each value of i, i create a new variable such as constant2, constant3,... and so on.
for i in 1 2 3
do ... (1 Reply)
Discussion started by: ROOZ
1 Replies
7. Shell Programming and Scripting
G'day guys, first post so be gentle.
I need help with some code to work out if a variable (string) contains any integers. The valid variable (string) must contain only letters.
Also need to be able to work out if a variable contains only integers.
Any help greatly appreciated. (7 Replies)
Discussion started by: haz
7 Replies
8. UNIX for Dummies Questions & Answers
Hi
i am writing a shell script; I need to convert a string to integer so that i can use it in the 'awk' command to choose a field.
can you please help me. thank you. (2 Replies)
Discussion started by: abb058
2 Replies
9. Programming
Which function should I use to convert an Integer to a String or Char format ?
Thanx (2 Replies)
Discussion started by: psilva
2 Replies
10. UNIX for Dummies Questions & Answers
i want to convert from an integer to a string..in unix...i am writing a C program with embedded SQL...
I remeber using itoa...but for some reason it doesnt work......i cant find it in the manual.....
Maybe that is the wrong command.....
but i have checked Dev Studio.....and it doest exist in the... (6 Replies)
Discussion started by: mojomonkeyhelper
6 Replies
wxControlWithItems(3erl) Erlang Module Definition wxControlWithItems(3erl)
NAME
wxControlWithItems - See external documentation: wxControlWithItems.
DESCRIPTION
See external documentation: wxControlWithItems .
This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler
DATA TYPES
wxControlWithItems() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
append(This::wxControlWithItems(), Item::string()) -> integer()
See external documentation .
append(This::wxControlWithItems(), Item::string(), ClientData::term()) -> integer()
See external documentation .
appendStrings(This::wxControlWithItems(), Strings::[[string()]]) -> ok
See external documentation .
clear(This::wxControlWithItems()) -> ok
See external documentation .
delete(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
findString(This::wxControlWithItems(), S::string()) -> integer()
Equivalent to findString(This, S, []) .
findString(This::wxControlWithItems(), S::string(), Options::[Option]) -> integer()
Types Option = {bCase, bool()}
See external documentation .
getClientData(This::wxControlWithItems(), N::integer()) -> term()
See external documentation .
setClientData(This::wxControlWithItems(), N::integer(), ClientData::term()) -> ok
See external documentation .
getCount(This::wxControlWithItems()) -> integer()
See external documentation .
getSelection(This::wxControlWithItems()) -> integer()
See external documentation .
getString(This::wxControlWithItems(), N::integer()) -> string()
See external documentation .
getStringSelection(This::wxControlWithItems()) -> string()
See external documentation .
insert(This::wxControlWithItems(), Item::string(), Pos::integer()) -> integer()
See external documentation .
insert(This::wxControlWithItems(), Item::string(), Pos::integer(), ClientData::term()) -> integer()
See external documentation .
isEmpty(This::wxControlWithItems()) -> bool()
See external documentation .
select(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
setSelection(This::wxControlWithItems(), N::integer()) -> ok
See external documentation .
setString(This::wxControlWithItems(), N::integer(), S::string()) -> ok
See external documentation .
setStringSelection(This::wxControlWithItems(), S::string()) -> bool()
See external documentation .
AUTHORS
<>
wxErlang 0.98.9 wxControlWithItems(3erl)