Sponsored Content
Full Discussion: How can we do this!?
Top Forums UNIX for Beginners Questions & Answers How can we do this!? Post 302998642 by Indra2011 on Monday 5th of June 2017 01:32:25 PM
Old 06-05-2017
How can we do this!?

Hi,

I have an input file which looks like

Code:
101,103,1,2,3
,,,2,3
,,,4,5
201,234,7,8,9
,,,4,5

I would like top have output like, Is this possible?

Code:
101,103,1,2,3
101,103,1,2,3
101,103,1,4,5
201,234,7,8,9
201,234,7,4,5

Thanks a lot,

Last edited by Indra2011; 06-05-2017 at 03:44 PM..
 
prtdscp(1M)						  System Administration Commands					       prtdscp(1M)

NAME
prtdscp - display DSCP IP addresses SYNOPSIS
prtdscp [-v ] prtdscp [-v ] -h prtdscp [-v ] -d prtdscp [-v ] -s DESCRIPTION
prtdscp displays the IP addresses associated with a Domain to Service Processor Communications Protocol (DSCP) link. If no arguments are specified, prtdscp displays the IP addresses on both ends of the DSCP link. The IP address of either the Service Processor or domain side can be displayed separately by the use of the -s or -d options, respectively. OPTIONS
The following options are supported: -v Verbose mode. Print additional details about the program's internal progress to stderr. -h Help. Print a brief synopsis of the program's usage and exit. All other command line arguments are ignored. -d Display only the local domain's IP address. -s Display only the remote Service Processor's IP address. EXAMPLES
Example 1 Displaying both addresses The following example displays both the local domain's IP address and the remote SP's IP address: # prtdscp Domain Address: 192.168.103.2 SP Address: 192.168.103.1 Example 2 Displaying the local IP address The following example displays the local domain's IP address: # prtdscp -d 192.168.103.2 Example 3 Displaying the remote IP address The following example display the remote SP's IP address: # prtdscp -s 192.168.103.1 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdscpr.u, SUNWdscpu.u | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.11 25 Apr 2006 prtdscp(1M)
All times are GMT -4. The time now is 05:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy