Sponsored Content
Full Discussion: Ravi
Top Forums Shell Programming and Scripting Ravi Post 302169869 by rvboyapati on Friday 22nd of February 2008 04:40:49 PM
Old 02-22-2008
Ravi

We have one UNIX server , I'm trying to use a multi-line printing using awk command. The sample input file is given below

1
SYSCATSPACE
System managed
4584

1
TEMPSPACE1
System managed
1

2
USERSPACE1
System managed
416

3
SYSTOOLSPACE
System managed
91

4
SYSTOOLSTMPSPACE
System managed
1

And my output file should look like this

0 SYSCATSPACE System manageda 4584
1 TEMPSPACE1 System managed 1
2 USERSPACE1 System manageda 416
3 SYSTOOLSPACE System managed 91

How do i print multiple records using awk command,
your help will be highly appreciated in this regard.

Regards

Ravi

edit by bakunin: Ravi, please keep the following two issues in mind:

1. Give your threads some meaningful title. The questions you pose along with the answers are going to a permanent knowledge database (the forums archive) and other users can and do search this database. If someone has a similar problem like you s/he should be able to enter "multiline print" or something such as keyword and find your thread. This is why naming threads "Ravi" or "i have a problem" or so is a pretty bad idea.

2. The baord has theme-oriented subsections. The section you posted in is dealing with AIX issues. You might be working on an AIX machine, but the problem you posed is clearly not AIX-related. There is a section "Shell scripting" where this thread would fit much better. I'm going to move it over to there in this case, but, please, try to put your thread in the right part yourself. Thank you.

Last edited by bakunin; 02-23-2008 at 07:35 AM..
 
XtManageChildren(3Xt)						     MIT X11R4						     XtManageChildren(3Xt)

Name
       XtManageChildren, XtManageChild, XtUnmanageChildren, XtUnmanageChild - manage and unmanage children

Syntax
       typedef Widget *WidgetList;

       void XtManageChildren(children, num_children)
	  WidgetList children;
	  Cardinal num_children;

       void XtManageChild(child)
	  Widget child;

       void XtUnmanageChildren(children, num_children)
	  WidgetList children;
	  Cardinal num_children;

       void XtUnmanageChild(child)
	  Widget child;

Arguments
       child	 Specifies the child.

       children  Specifies a list of child widgets.

       num_children
		 Specifies the number of children.

Description
       The function performs the following:

       o    Issues an error if the children do not all have the same parent or if the parent is not a subclass of

       o    Returns immediately if the common parent is being destroyed; otherwise, for each unique child on the list, ignores the child if it
	    already is managed or is being destroyed and marks it if not.

       o    If the parent is realized and after all children have been marked, it makes some of the newly managed children viewable:

	    -	 Calls the change_managed routine of the widgets' parent.

	    -	 Calls on each previously unmanaged child that is unrealized.

	    -	 Maps each previously unmanaged child that has map_when_managed

       Managing children is independent of the ordering of children and independent of creating and deleting children.	The layout routine of the
       parent should consider children whose managed field is and should ignore all other children.  Note that some composite widgets, especially
       fixed boxes, call from their insert_child procedure.

       If the parent widget is realized, its change_managed procedure is called to notify it that its set of managed children has changed.  The
       parent can reposition and resize any of its children.  It moves each child as needed by calling which first updates the x and y fields and
       then calls if the widget is realized.

       The function constructs a of length one and calls

       The function performs the following:

       o    Issues an error if the children do not all have the same parent or if the parent is not a subclass of

       o    Returns immediately if the common parent is being destroyed; otherwise, for each unique child on the list, performs the following:

	    -	 Ignores the child if it already is unmanaged or is being destroyed and marks it if not.

	    -	 If the child is realized, it makes it nonvisible by unmapping it.

       o    Calls the change_managed routine of the widgets' parent after all children have been marked if the parent is realized.

       does not destroy the children widgets.  Removing widgets from a parent's managed set is often a temporary banishment, and, some time later,
       you may manage the children again.

       The function constructs a widget list of length one and calls

See Also
       XtMapWidget(3Xt), XtRealizeWidget(3Xt)
       X Window System Toolkit: The Complete Programmer's Guide and Specification, Paul J. Asente and Ralph Swick
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															     XtManageChildren(3Xt)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy