Hi
Following is the code . When I give input as Bangalore,its dospalying Welcome to Hitech City. But say , if I select Delhi or US, its not displaying the corresponding message. Its still says Welcome to Hitech City.
Seems that it not entering in the elif part. Please suggest.
#!... (4 Replies)
I just want to write a little script, that reads the lines from a file, echos somthing in a new tmp.file and then do some commands whith the tmp.files.
while read -r line
do
echo "TEST=" > tmp.$$
echo "$line" >> tmp.$$
any_command < tmp.$$
done < $INPUTFILE
But I think I have to... (2 Replies)
I analysed disk performance with blktrace and get some data:
read:
8,3 4 2141 2.882115217 3342 Q R 195732187 + 32
8,3 4 2142 2.882116411 3342 G R 195732187 + 32
8,3 4 2144 2.882117647 3342 I R 195732187 + 32
8,3 4 2145 ... (1 Reply)
Dear experts,
i am quite new to shell script please any one can help me in this regard
i would like write a script which takes input in the form
>./Test.sh a,10,b,20,c,30...
in this way i can give input in any number which is not constant
in the end through loop i want to... (3 Replies)
Hi everyone,
I have n number of data in my file "temp" in following order.In each line table_name and
column_name are different.input data is in same format each query in three lines.
ALTER TABLE table_name
ADD ( column_name1 VARCHAR2(10),
column_name2 VARCHAR2(70) );
... (23 Replies)
I am looking to a solution to the following problem. I have a very large file that looks something like this:
Each group of three numbers on each line are three probabilities that sum to one.
I want to output the maximum for each group of three. So desired output would be:
or... (6 Replies)
Hi,
I have multiple files in a directory. Each file will have a header.I have to check if any of the files has 0 rows other than the header then I have to delete the files.
Here “ Empty file” in my case means a file has header information but no data. I have to delete such files.
If the file... (2 Replies)
Hi Friends, I have a file. the content is as below:
file1:
/A/B/C/abc.txt
2013-07-28 13:50:00,2013-07-31 01:00:00,5,710
/A/B/C/xyz.txt
2011-09-21 18:30:00,2013-07-30 06:15:00,15,65135
2009-11-09 18:00:00,2011-09-02 09:00:00,5,12345
2013-07-28 13:50:00,2013-07-31 01:00:00,5,710
... (2 Replies)
I am running the below bash loop on all the files of a specific type (highlighted in bold) in a directory. There are 4 awk commands that use the input files to search another and look for a match. The input files range from 27 - 259 and are a list of names. The file that is searched is... (11 Replies)
Hello,
I am basic level shell script developer. I have developed the following script. The shell script basically tracking various files containing certain strings. I am finding options to make the script run more faster. Any help/suggestion would be appreciated :)
#! /bin/bash
# Greps for... (6 Replies)
Discussion started by: Bhanuprasad
6 Replies
LEARN ABOUT OSF1
dxmdisplaycsmessage
DXmDisplayCSMessage(3X)DXmDisplayCSMessage(3X)NAME
DXmDisplayCSMessage - Displays a compound string message.
SYNOPSIS
Widget DXmDisplayCSMessage(
Widget parent_widget,
char *name,
Boolean default_position,
Position x,
Position y,
unsigned char style,
int *message_vector,
Widget *widget,
int *convert_proc,
XtCallbackList ok_callback,
XtCallbackList help_callback );
PARAMETERS
The identifier (widget ID) for the parent widget of the created widget. The name of the created widget. When True, the x and y positions
of the widget window are ignored in favor of the default, which centers the message box in the window of the parent widget. The placement,
in pixels, of the left side of the message box relative to the inner upper-left corner of the parent window. The placement, in pixels, of
the upper side of the message box relative to the inner upper-left corner of the parent window. The style of the dialog box widget used
for the message box. The predefined values for this resource are as follows:
-----------------------------------------------------------
Value Description
-----------------------------------------------------------
XmDIALOG_FULL_APPLICATION_MODAL Used for dialogs that
must be responded to
before other interac-
tions in the same
application
XmDIALOG_MODELESS Modeless type dialog
box
XmDIALOG_PRIMARY_APPLICATION_MODAL Used when dialogs
must be responded to
before other interac-
tions in ancestors of
the widget
XmDIALOG_SYSTEM_MODAL Modal type dialog box
-----------------------------------------------------------
The default is XmDIALOG_MODELESS. The message argument vector specifying the compound strings and associated information.
The first longword contains the number of longwords in the message blocks to follow. The first longword in each message block con-
tains a pointer to the compound string. The next word consists of the formatted ASCII output (FAO) parameter count. The remaining
longwords in the message block are the FAO parameters.
In addition to the standard FAO system service flags, the compound string message routine will accept the new FAO directive "!CS".
When used, this directive will insert a compound string itself. The identifier (widget ID) of an already existing message box wid-
get. The Intrinsic routine XtSetValues is called on this widget to change the text of the message to match the new message. (Note,
however, that this call to XtSetValues does not set default_position, x, y, or style for the existing message box widget.) If this
parameter is 0, a new message box widget is created. A pointer to a routine that is executed after the message is formatted but
before it is displayed. A pointer to the formatted string is passed to the routine as a parameter.
The parameter is a null-terminated character string. A callback descriptor data structure. The callback is executed when the user
clicks on the Acknowledged button. The reason is XmCR_OK. A callback descriptor data structure. The callback is executed when the
user requests help. The reason returned is XmCR_HELP.
DESCRIPTION
The DXmDisplayCSMessage routine accepts an array of compound strings, formats them, and, if necessary, creates a message box. A return of
0 (Null) indicates that the message box could not be created.
RETURN VALUES
The identifier (widget ID) of the message box widget.
DXmDisplayCSMessage(3X)