Sponsored Content
Top Forums UNIX for Dummies Questions & Answers using sed to write horizontally & sequentially in a file Post 302360840 by Scott on Saturday 10th of October 2009 06:38:37 PM
Old 10-10-2009
Hi.

Assuming you have your data in files already:

Code:
paste -d" " infile1 infile2

where infile1 is the sec..... and infile2 is the 99.99.... stuff.

Or
Code:
cat infile2 | paste -d" " infile1 -

where "cat infile2" is anything which generates the 99.99.... stuff

Last edited by Scott; 10-10-2009 at 07:43 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Merging Two File Horizontally

I am trying to merge two large file horizontally using paste command. Every thing is working fine except for time. Its taking lot of time. Is there any effiecient way of doing the same thing or is there anyway by which I can improve its perfomance programatically? Thanks, Yeheya (1 Reply)
Discussion started by: yeheyaansari
1 Replies

2. Shell Programming and Scripting

sed to read and write to very same file

This is likely to be a dumb one. How can I use sed to substitute string occurances having it read from an input file and write to this very same file ? I have a file with lots of occurances of '2006', I want to change it to '2007', but I'd like these changes to be saved on the input file. ... (5 Replies)
Discussion started by: 435 Gavea
5 Replies

3. Shell Programming and Scripting

Need help in reading a file horizontally and printing vertically

Hi Every body, I have file which has enttries, with each 5 entries as a set of entries, I would like to read the file (line by line) and print five entries of a set vertically, the next entry should come in the next line. Example: cat sample_file I am a Unix Adminsitrator new to shell... (6 Replies)
Discussion started by: aruveiv
6 Replies

4. Shell Programming and Scripting

Extract string from a file & write to a new file (Perl)

Hi, This is the first time playing around with perl and need some help. Assuming if i have a line of text that looks like this: Date/Time=Nov 18 17:12:11;Device Name=192.168.1.1;Device IP=192.168.1.1;Device Class=IDS;Source IP=155.212.212.111;Source Name=UNKNOWN;Source Port=1679... (3 Replies)
Discussion started by: LuckyGuy
3 Replies

5. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

6. Shell Programming and Scripting

Extract data from an XML file & write into a CSV file

Hi All, I am having an XML tag like: <detail sim_ser_no_1="898407109001000090" imsi_1="452070001000090"> <security>ADM1=????</security> <security>PIN1=????</security> <security>PIN2=????</security> ... (2 Replies)
Discussion started by: ss_ss
2 Replies

7. Shell Programming and Scripting

How to write If statement using && and operator in Unix

Hi What is the syntax for if statement using && and || operator? if && ] || here its giving me an error to this if statement any suggestion?? (2 Replies)
Discussion started by: Avi
2 Replies

8. Shell Programming and Scripting

Finding BEGINNING & ENDING positions of sequentially increasing sublists from a perl numeric array

I have got an Perl array like: @array = (1,2,3,4,5,6,1,2,3,4,1,2,1,2,3,4,5,6,7,8,9...............) This numeric sequence will be always sequentially increasing, unless it encounters, The beginning of the new sequentially increasing numeric sequence. SO in this array we get sequentially... (5 Replies)
Discussion started by: teknokid1
5 Replies

9. Shell Programming and Scripting

Perl extract number from file & write to file

I have 1 file that has elements as follows. Also the CVR(10) and the word "SAUCE" only appear once in the file so maybe a grep command would work? file1 CVR( 9) = 0.385E+05, ! VEHICLE CVR(10) = 0.246E+05, ! SAUCE CVR(11) = 0.162E+03, ! VEHICLE I need to extract the... (6 Replies)
Discussion started by: austinj
6 Replies

10. Shell Programming and Scripting

sed will not write to same file

I am a scripting noob, and having much trouble getting this script to run correctly. Upon start it should read the home directory and sort the files into a text file. Then have user enter a user name and insert it into line 1 of the same text file. Then have the date insert into the second line of... (8 Replies)
Discussion started by: bbaumg02
8 Replies
oss_audioloop(7)						    OSS Devices 						  oss_audioloop(7)

NAME
oss_audioloop - Loopback audio driver. DESCRIPTION
The loopback audio driver makes it possible to create special purpose virtual audio devices based on user land server processes. Loopback devices are driven by a timer interrupt and no real audio hardware is required. INTRODUCTION Audio loopback devices are like named pipes or pseudo terminals. They are grouped in client and server device pairs. The server side device must be open before the client side device can be opened. Loopback devices are typically used to implement server based special purpose audio devices. This kind of server can for example transfer the audio data played by the client application to some remote system using some VoIP protocol. However the server application doesn't need to be any dedicated server. Practically any audio application can be used as the server. SERVER SIDE DEVICE The server side applications sets up the native sampling rate and sample format (number of bits and channels). The server side device can be opened for input (O_RDONLY) pr output (O_WRONLY). Opening for simultaneous input and output (O_RDWR) is not permitted. The server application will automatically be paused at the moment it tries to read or write audio data for the first time. It will be kept in sleep until the client side application starts writing or reading data. This sleep period may last forever and in some cases the first write/read call never returns. For this reason it's not recommended to use GUI based audio applications as the server. Note that this wait will occur even in the non-blocking (O_NONBLOCK) mode (this is intentional feature and not a bug). CLIENT SIDE DEVICE The client side device is typically used by any ordinary audio application. There is nothing special in loopback devices. Since the loop is unidirectional the client side will be forced to be write only if the server side device is open for recording and vice versa. The loop will use the sample rate and sample format (number of bits and channels) set by the server side application. If the client uses different settings then OSS will perform the required sampling rate and format conversions automatically. COMPATIBILITY ISSUES
Audio loopback devices differ from "normal" audio devices because an application is needed at the both ends of the loop. The loop device will return a "Connection reset by peer" error (ECONNRESET) error. Applications designed to be used as loopback based server applications can/should use this error (returned by read or write) as an end-of-stream indication. OPTIONS
o audioloop_instances: Specifies how many loopback client/server audio device pairs to be created. Values: 1-16 Default: 1 KNOWN PROBLEMS
o There is no mixer (volume control) related with loopback audio devices. This may prevent poorly designed audio applications (that expect/require a mixer) from working. There is no workaround available. o The server side application will wait until the client side application starts using it. This wait may last forever which in turn may cause unrecoverable (network) problems with some applications. o Loopback devices may return "Connection reset by peer" error when the reote side of the loop disconnects the device. Some recording applications may fail to save the recorded data properly because of this. Use some other application (such as ossrecord) if this hap- pens. FILES
/etc/oss4/conf/oss_audioloop.conf Device configuration file AUTHOR
4Front Technologies 16 December 2012 oss_audioloop(7)
All times are GMT -4. The time now is 02:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy