Sponsored Content
Top Forums Shell Programming and Scripting convert single line output to multiple line Post 302683211 by Corona688 on Tuesday 7th of August 2012 10:58:26 AM
Old 08-07-2012
Here's a way using pure shell builtins:

Code:
printf "%s\n" $ips

This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Multi-line output to single line

Hello, How can I take the following output: outputa outputb outputc and turn it into single line ouput, with a single space between each field like below: outputa outputb outputc (7 Replies)
Discussion started by: LinuxRacr
7 Replies

2. Shell Programming and Scripting

single line input to multiple line output with sed

hey gents, I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Discussion started by: mitch
8 Replies

3. Shell Programming and Scripting

make multiple line containing a pattern into single line

I have the following data file. zz=aa azxc-1234 aa=aa zz=bb azxc-1234 bb=bb zz=cc azxc-1234 cc=cc zz=dd azxc-2345 dd=dd zz=ee azxc-2345 ee=ee zz=ff azxc-3456 ff=ff zz=gg azxc-4567 gg=gg zz=hh azxc-4567 hh=hh zz=ii azxc-4567 ii=ii I want to make 2nd field pattern matching multiple lines... (13 Replies)
Discussion started by: VTAWKVT
13 Replies

4. Shell Programming and Scripting

Output coming in different line instead of single line

Hi Guys, I have an oracle database, I am trying to query the database and route it to file. But the records instead of coming in a single line, are coming in three lines. Can you please help me.. in this.. sqlplus -s $SRMUserid/$SRMPassword@$SRMServer<< EOF >log.out; select * from... (5 Replies)
Discussion started by: mac4rfree
5 Replies

5. Shell Programming and Scripting

Merge multi-line output into a single line

Hello I did do a search and the past threads doesn't really solve my issue. (using various awk commands) I need to combine the output from java -version into 1 line, but I am having difficulties. When you exec java -version, you get: java version "1.5.0_06" Java(TM) 2 Runtime... (5 Replies)
Discussion started by: flagman5
5 Replies

6. Shell Programming and Scripting

Joining multi-line output to a single line in a group

Hi, My Oracle query is returing below o/p ---------------------------------------------------------- Ins trnas value a lkp1 x a lkp1 y b lkp1 a b lkp2 x b lkp2 y ... (7 Replies)
Discussion started by: gvk25
7 Replies

7. Shell Programming and Scripting

sed command to grep multiple pattern present in single line and delete that line

here is what i want to achieve.. i have a file with below contents cat fileName blah blah blah . .DROP this REJECT that . --sport 7800 -j REJECT --reject-with icmp-port-unreachable --dport 7800 -j REJECT --reject-with icmp-port-unreachable . . . more blah blah blah --dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies

8. Shell Programming and Scripting

Splitting Single line into multiple line

Hi All, I am reading a line from a file and writing it to other file. Whenever I got a particular line then I want that line to be splited into 4 line and written it to new file. e.g My line is U_ABC connector3 pin24E connector4 pin25E connector5 pin26E connector6 pin27E connector7... (2 Replies)
Discussion started by: diehard
2 Replies

9. Shell Programming and Scripting

Multiple pattern match and print the output in a single line

I need to match two patterns in a log file and need to get the next line of the one of the pattern (out of two patterns) that is matched, finally need to print these three values in a single line. Sample Log: 2013/06/11 14:29:04 <0999> (725102) Processing batch 02_1231324 2013/06/11... (4 Replies)
Discussion started by: rpm120
4 Replies

10. UNIX for Beginners Questions & Answers

Output to file print as single line, not separate line

example of problem: when I echo "$e" >> /home/cogiz/file.txt result prints to file as:AA BB CC I need it to save to file as this:AA BB CC I know it's probably something really simple but any help would be greatly appreciated. Thank You. Cogiz (7 Replies)
Discussion started by: cogiz
7 Replies
atmifmp(8)						      System Manager's Manual							atmifmp(8)

NAME
atmifmp - Configures the ATM subsystem for switching IP traffic only SYNOPSIS
/usr/sbin/atmifmp command arguments Arguments can appear in any order after the command. All required arguments must be specified. OPTIONS
This section is organized by the tasks you can perform with the atmifmp command. Each task subsection provides the atmifmp command syntax and the options to use to complete the tasks. Enabling IP Switching Syntax: /usr/sbin/atmifmp attach ips=num driver=name [snapvci=vci] [rxmin=vci] [rxmax=vci] [txmin=vci] [txmax=vci] Creates a point-to-point, multicast-capable virtual interface on a driver as specified in the next two arguments. If the virtual interface already exists but is not currently attached (because it was previously attached and detached), the command creates an association between the virtual interface and the specified driver. The attach command also configures the Virtual Circuit Identifier (VCI) ranges available to the IP switching module (VPI 0 is assumed). VCs used by the IP switching module are unidirectional. After the ips interface is attached, you must configure the interface using the ifconfig(8) command, specifying the source address of the host and destination address of the IP switch or another host associated with the point-to-point interface. Specifies the ips interface number to create. Specifies the ATM driver associated with the virtual interface. Specifies the VCI number that Ipsilon Flow Management Protocol (IFMP) uses as the default SNAP VCI. The default VCI is 15. This number must match the VCI number used by IFMP on the destination host or switch associated with the point-to-point interface. Specifies the smallest VCI number that can be used for receiving IP switching traffic. The default value is the driver's minimum VCI value. Specifies the largest VCI num- ber that can be used for receiving IP switching traffic. The default value is the driver's maximum VCI value. Specifies the small- est VCI number that can be used for transmitting IP switching traffic. The default value is the driver's minimum VCI value. Speci- fies the largest VCI number that can be used for transmitting IP switching traffic. The default value is the driver's maximum VCI value. Disabling IP Switching Syntax: /usr/sbin/atmifmp detach ips=num Disassociates the virtual interface, ipsnum, from the driver to which it was previously attached. Prior to detaching the interface, you must delete the ips interface's address and bring down the the ips interface using the ifconfig(8) command. Specifies the ips interface. Displaying IP Switching Configuration Syntax: atmifmp showips [ips=num] Displays the state of all ips interfaces, unless an interface is specified by the next argument. Information displayed includes the inter- face attachment state, the driver to which the interface is attached, the default SNAP VC, the interface and driver receive/transmit/mini- mum/maximum VC ranges, and IFMP and Flow configuration information. Specifies the ips interface. Displaying or Clearing IP Switching Statistics Syntax: /usr/sbin/atmifmp stats [ips=num] [clear] Displays the flow and IFMP statistics for all ips interfaces, unless an interface is specified by the next argument. Specifies the ips interface. Zeros the flow and IFMP statistics for all ips interfaces, unless an interface is specified. Statistics are displayed after they are cleared. Displaying IP Switching Flow Information Syntax: /usr/sbin/atmifmp flows [ips=num] [long] Displays flows created by the IP switching module on all interfaces, unless an interface is specified by the next argument. Information displayed for each flow includes the Flow ID, the transmit or receive VC associated with the Flow, the Flow Type, the number of packets sent or received, and VC aging information. Specifies the ips interface. Displays additional information about each flow, such as the information encoded in the Flow ID. DESCRIPTION
The atmifmp command enables and disables IP switching on a Tru64 UNIX end system that has an attached ATMworks ATM adapter. The IP switch- ing architecture is based on the Ipsilon Networks, Inc. reference model, and enables you to configure the Tru64 UNIX ATM subsystem to sup- port only IP traffic over an ATM network. The IFMP protocol associates an ATM virtual circuit with an IP data flow. RESTRICTIONS
If an ips interface is attached to a specific ATM adapter on your system, you cannot use that adapter to run ATM Forum protocols (UNI sig- naling, Classical IP, or Local Area Network Emulation (LANE)). Multiple adapters are required. SEE ALSO
Commands: atmconfig(8) Files: atm.conf(4) RFC 1953, Ipsilon Flow Management Protocol Specification for IPv4 V 1.0 RFC 1954, Transmission of Flow Labeled IPv4 on ATM Data Links, Ipsilon Version 1.0 atmifmp(8)
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy