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..
 
macpack(Mono 1.0)														 macpack(Mono 1.0)

NAME
macpack - Macintosh OS X Packager for managed gui assemblies SYNOPSIS
macpack [options] assembly DESCRIPTION
macpack is a tool used to package managed assemblies (like System.Windows.Forms or Cocoa#) that require gui availability for deployment on Mac OS X. macpack will prepare a OS X compatible bundle from the provided assembly and resources. The bundle will include the specified assembly as well as any of the provided resources (specified with the -resource: switch). Developers can specify the kind of application to produce using the -mode: argument. This controls how the environment in the Mono class libraries is setup. OPTIONS
-a assembly This option tells macpack where the managed assembly that you want to bundle resides. This option is also used to point to the shell script to launch in the case of a X11/Gtk# application. This is the same as just passing the assembly as an argument. -m [winforms,x11,console,cocoa] or -mode:[winforms,x11,console,cocoa] A value indicating the kind of application: WinForms is a Winforms application running on Quartz; X11 is an application that requires the X11 server to run; console is a non-graphical application; cocoa is an application based on Cocoa# -n NAME or -appname:NAME This option specifies the application name of the emitted bundle. This is what you will see in Finder. -o DIRECTORY or -output:DIRECTORY This option specifies the path to output the generated Application. -r RESOURCE or -resource:RESOURCE This option can be specified multiple times. It will place a copy of each resource into the bundles resources directory. Alternatively, you can use a comma separated list of resources. AUTHOR
Geoff Norton WEB SITE
Visit: http://www.mono-project.com for details macpack(Mono 1.0)
All times are GMT -4. The time now is 01:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy