Hi all,
I ve a script like....
TBL=employee
sql=`cat abhi.sql` \\ abhi.sql contains ------- select a from $TBL
echo $TBL
echo $sql
SQL=`echo $sql`
echo $SQL
now i want SQL as select a from employee
and as select a from $TBL
How can I achieve this?
Help appriciated (3 Replies)
Hi,
I have one file like 00123. And this file name is generated as a sequence.
So how can I confirm the generated file name is a number, not a special character or alphabets.
Can anybody help me out.
Thanks in advance. (3 Replies)
Hi,
I have a file with data as given
$cat file1.txt
123
234
23e
234.456
234.876e
345.00
I am checking if the values are proper integers using the command.
nawk -F'|' 'int($1)!=$1 {printf "Error in field 1|"$0"\n"}' file1.txt
This is checking for only integers ( without... (10 Replies)
Hey,
I am trying to check if an integer is even in a tcsh script
This is what I am running now
set lattest = ` echo $latmin "%2" | bc -l `
echo $lattest
if ( $lattest == 0 ) then
echo "min is already even"
else if ( $lattest =! 0 ) then
set latmin = ` echo $latmin "+1" |... (2 Replies)
Hey i got trivial question but i cant figure it out. I want to grep a file for multiple unknown parameters. The user will enter these parameters at the command line. For example...
./program red apple filename
This would grep for the phrase red apple. But i cant just do $1 $2 because the... (8 Replies)
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (1 Reply)
Hello,
I would like to control and check the right parameters
$1 must have 4 alphabetics digits among eora qora pora fora
$2 must have 2 numerics digits 00 to 11
$3 must have 2 numerics digits 00 to 59
$4 must have 10 characters alpha numerics as 2013-02-26
For example :
In case 5) if i... (15 Replies)
Hello,
May i please know how do i check if the given input argument is one of the listed numbers then success else failure. I am using bash shell.
if
then
echo "success"
else
echo "failure"
fi
Thank you. (2 Replies)
Discussion started by: Ariean
2 Replies
LEARN ABOUT REDHAT
xtcallactionproc
XtCallActionProc(3Xt) XT FUNCTIONS XtCallActionProc(3Xt)NAME
XtCallActionProc - invoke an action procedure directly
SYNTAX
void XtCallActionProc(widget, action, event, params, num_params)
Widget widget;
String action;
XEvent* event;
String* params;
Cardinal num_params;
ARGUMENTS
widget Specifies the widget in which the action is to be invoked. Must be of class core of any subclass thereof.
action Specifies the name of the action routine.
event Specifies the contents of the event passed to the action routine.
params Specifies the contents of the params passed to the action routine.
num_params
Specifies the num of entries in params.
DESCRIPTION
XtCallActionProc searches for the named action routine in the same manner and order as translation tables are bound. If found, the action
routine is invoked with the specified widget, event pointer, and parameters. It is the responsibility of the caller to ensure that the con-
tents of event, params, and num_params arguments are appropriate for the specified routine, and if necessary, that the specified widget is
realized or sensitive. If the named action routine cannot be found, XtCallActionProc generates a warning message and returns.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
X Version 11 Release 6.6 XtCallActionProc(3Xt)