Hi all,
I've been experiencing a difficulty trying to match a number and write it to a new file.
My input file is: input.txt
It contains the lines:
103P 123587.256971 3.21472112 3.1517423
1.05897234566427 58.2146258 12.35478 25.3612489
What would be the sed command to... (17 Replies)
Hi,
I would like to use SED to do the following string replacement:
asd1abc to www1cda
asd2abc to www2cda
...
asd9abc to www9cda
I can use 'asd.abc' to find the orignal string, however I don't know how to generate the target string. Any suggestion?
Thanks,
... (2 Replies)
How can I write a script that takes a cisco config file and outputs every occurrence of two, or more, pattern matches through the whole config file?
For example, out of a config file, i want to print out every line with interface, description and ip address through the whole file, and disregard... (3 Replies)
I have following pattern in a file:
00:01:38 UTC
abcd
00:01:48 UTC
00:01:58 UTC
efgh
00:02:08 UTC
00:02:18 UTC
and I need to change something like the following
00:01:38 UTC
abcd
00:01:48 UTC
XXXX
00:01:58 UTC
efgh
00:02:08 UTC
XXXX (6 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
I need to grep for the pattern text inside the square brackets which are in red and not in green..my current code greps patterns both of them, which i don't want
Input fileref|XP_002371341.1| oxoacyl-ACP reductase, putative gb|EPT24759.1| 3-ketoacyl-(acyl-carrier-protein) reductase ... (2 Replies)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Discussion started by: Klasform
9 Replies
LEARN ABOUT DEBIAN
oss_audioloop
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)