09-14-2005
hi,
i have test your script and works thx Sabari Nath S, and Perderabo
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
OK this one sounds like it should be a natural...
it must be possible to send a number say 200 to a text file and later use it as a variable?
yada yada > file.txt
how would I retrieve that number to use as a variable? Is this possible? (5 Replies)
Discussion started by: nortypig
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am sitting on HPUX. I want to change the exit into #exit, which appears into 3red line of code in shell scripting, wondering how shell script to be called up to perform action. I have following code in all files. Now, I need to find the text exit and replace into #exit.
#!/sbin/sh... (10 Replies)
Discussion started by: alok.behria
10 Replies
3. Shell Programming and Scripting
I want to rearrange some of my columns in my dat file; how do i do this using a script
Suppose, I have an input file like this:
BASENAME STREETTYPE PREFIX SUFFIX HOUSENUMBER BUILDUP ORDER8 ORDER2 ORDER1 ISOCOUNTRYCODE POSTALCODE
SILVER LAKE RD NW 1135 NEW BRIGHTON RAMSEY MINNESOTA USA 55112... (4 Replies)
Discussion started by: ramky79
4 Replies
4. Shell Programming and Scripting
Hi,
I have a pipe separated text file.
Can some someone tell me how to convert it to a table?
Text File contents.
|Activities|Status1|Status2|Status3|
||NA|$io_running2|$io_running3|
|Replication Status|NA|$running2|$running3|
||NA|$master2|$master3|... (1 Reply)
Discussion started by: rocky88
1 Replies
5. Shell Programming and Scripting
Hi,
I am not so familiar with bash scripting and would appreciate your help here.
I have a text file 'input.txt' like this:
2 3 4
5 6 7
8 9 10
I want to store each column in an array like this
a ={2 5 8}, b={3 6 9}, c={4 7 10}
so that i can access any element, e.g b=6 for the later use. (1 Reply)
Discussion started by: Asif Siddique
1 Replies
6. Shell Programming and Scripting
Hi all,
I have a text file that has (4) columns. There are about 300 lines on this file. It is a plain text file. I am looking to write a simple script that will read each line from the file and generate another text file. The file looks something like this:
These are the columns:
... (4 Replies)
Discussion started by: adamw
4 Replies
7. UNIX for Dummies Questions & Answers
Sample Input File
2014/10/09 CDE876172588765 00:09:45 00:10:10 200 200 11.7093
2014/10/09 CDE366134588757 01:04:34 01:04:54 210 210 9.8898
2014/10/09 CDE765172345745 03:05:46 03:06:01 100 100 10.0601
2014/10/09 ... (8 Replies)
Discussion started by: rpm120
8 Replies
8. Shell Programming and Scripting
Hello,
I have some tab delimited text files with a three header rows. The headers look like, (sorry the tabs look so messy).
index group Name input input input input input input input input input input input... (9 Replies)
Discussion started by: LMHmedchem
9 Replies
9. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
10. UNIX for Beginners Questions & Answers
Suppose I have a file named intro.txt and its content is as follows
My name is Ankit.
I am 18.
I am a college student.
So I want make partitions in this and store it as
1. name.txt - I am 18.
2. age.txt - I am 18.
3. student.txt -I am a college student.
How do I do that in terminal?
edit... (1 Reply)
Discussion started by: ANKIT ROY
1 Replies
LEARN ABOUT HPUX
root_geometry_manager
root_geometry_manager() root_geometry_manager()
Name
root_geometry_manager - Shell class method called to negotiate shell geometry requests with a window manager.
Synopsis
typedef XtGeometryResult (*XtGeometryHandler)(Widget, XtWidgetGeometry *,
XtWidgetGeometry *);
Widget w;
XtWidgetGeometry *request;
XtWidgetGeometry *geometry_return;
Inputs
w Specifies the shell widget making the request.
request Specifies the requested geometry.
Outputs
geometry_return
Specifies the reply geometry.
Returns
The window manager's reply: XtGeometryYes, XtGeometryNo, XtGeometryAlmost, or XtGeometryDone.
Availability
Release 4 and later.
Description
The root_geometry_manager() method is registered on the root_geometry_manager field of a ShellClassExtensionRec structure with record_type
NULLQUARK, which is itself registered on the extension field of the Shell class part structure. The root_geometry_manager() method will be
called when a shell widget calls XtMakeGeometryRequest() or XtMakeResizeRequest(), and should negotiate the requested size with the window
manager.
The arguments to this method are the same as those passed to the geometry_manager() method. The root_geometry_manager() method should pass
the geometry request on to the window manager. If the window manager permits the new geometry, the root_geometry_manager() should return
XtGeometryYes; if the window manager denies the geometry request or it does not change the window geometry within some timeout interval
(the XtNwmTimeout resource for WMShell, for example), the root_geometry_manager() should return XtGeometryNo. If the window manager makes
some alternative geometry change, the root_geometry_manager() method may either return XtGeometryNo and handle the new geometry as a
resize, or may return XtGeometryAlmost in anticipation that the shell will accept the compromise. If the compromise is not accepted, the
new size must then be handled as a resize.
Communication with a window manager is an asynchronous process, but the root_geometry_manager() procedure must return its answer syn-
chronously. It will have to issue its request and then block until the reply arrives.
The root_geometry_manager() method is not chained. It can be inherited by specifying XtInheritRootGeometryManager in the Shell extension
record. If there is no Shell extension record with record_type equal to NULLQUARK, then the Intrinsics will behave as if an extension was
specified with XtInheritRootGeometryManager.
See the Inter-Client Communications Conventions Manual for information on communicating with window managers. See geometry_manager(4) for
a description of the structures and the possible return values of this method.
Usage
The root_geometry_manager() method of the Shell class itself handles communication with ICCCM-compliant window managers. It sets the
appropriate properties to make the geometry request, then uses XCheckIfEvent() to block until an ConfigureNotify event arrives in reply.
This method also uses private functions internal to the Intrinsics in order to correctly handle the events. Because of the complexity and
implementation-specific nature of this method, classes that want to define a custom root_geometry_manager() method should make their
requests to the window manager, and then call their superclass's method to make additional requests, block, and get the response.
See Also
XtMakeGeometryRequest(1), XtMakeResizeRequest(1),
Shell(3),
geometry_manager(4).
Xt - Intrinsics Methods root_geometry_manager()