06-21-2010
Well I need them each on one line because I will be processing them later ...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everyone,
Having trouble with sed. I searched the board and found some stuff, but still unclear.
I have a file named "userfile" which stores the users info in this form: email:username:password:
I want the user to be able to change their password.
i tried with sed s/oldpass/newpass/g... (2 Replies)
Discussion started by: primal
2 Replies
2. UNIX for Dummies Questions & Answers
I have a text
"abc def ghi"
and I want to get it as
"def abc ghi"
I am using this
echo "abc def ghi" | sed 's/\(*\)\(*\)/\2\1/'
But I am not able to get the output, could anyone help me.
Thanks (9 Replies)
Discussion started by: venu_nbk
9 Replies
3. Shell Programming and Scripting
hello
I have this:
sed -e "s/install_location=....../g" -e "s/hostname=....../g" -e "s/server_name=....../y" input.txt
it will display on the screen what have changed. however I want to change file input.txt. Any idea other than doing redirection (>)
thx (2 Replies)
Discussion started by: melanie_pfefer
2 Replies
4. Shell Programming and Scripting
my desired output is like this:
so the thing is, I only need to show every of this part out
but the frequency of that data is not fixed, so sometimes it may have 4 lines, or 6 lines or whatever in that file. However, the last line will always have empty space/line below it. (13 Replies)
Discussion started by: finalight
13 Replies
5. Shell Programming and Scripting
#! /bin/sed -nf
# Remove C and C++ comments, by Brian Hiles (brian_hiles@rocketmail.com)
# Sped up (and bugfixed to some extent) by Paolo Bonzini (bonzini@gnu.org)
# Works its way through the line, copying to hold space the text up to the
# first special character (/, ", '). The original... (1 Reply)
Discussion started by: Priyaranjan
1 Replies
6. Shell Programming and Scripting
I must write a script to change all C++ like comments:
// this is a comment
to this one
/* this is a comment */
How to do it by sed? With file:
#include <cstdio>
using namespace std; //one
// two
int main() {
printf("Example"); // three
}//four
the result should be: (2 Replies)
Discussion started by: black_hawk
2 Replies
7. Shell Programming and Scripting
Is there a way that I can use sed to remove lines with css comments like this?
/* comment */ (9 Replies)
Discussion started by: gravesit
9 Replies
8. Shell Programming and Scripting
I need to use sed to remove comments from files. I am using this, but it only works on comments that start at the beginning of the line.
sed /^"\/\/"/d
In most of the files I have comments like this:
code // Comments
or
tab // Comments (5 Replies)
Discussion started by: gravesit
5 Replies
9. Shell Programming and Scripting
Hi !
I try to change a time-stamp hh:mm:ss allways to full ten-minutes.
example: 12:51:03 to 12:50:03
sed 's/::/:{0-5}0:/g' file.txt
but it will not work propperly, because the minute-decade will be replaced with the bracket-term {0-5}. Can someone please give me a hint?
Thanks in... (6 Replies)
Discussion started by: IMPe
6 Replies
LEARN ABOUT NETBSD
uaudio
UAUDIO(4) BSD Kernel Interfaces Manual UAUDIO(4)
NAME
uaudio -- USB audio device driver
SYNOPSIS
uaudio* at uhub?
audio* at audiobus?
DESCRIPTION
The uaudio driver provides support for USB audio class devices.
A USB audio device consists of a number of components: input terminals (e.g. USB digital input), output terminals (e.g. speakers), and a
number of units in between (e.g. volume control). The following types of units are handled by the uaudio driver and are accessible via the
mixer (see audio(4)) interface:
mixer A mixer has a number of inputs and one output. Each input has a control that determines its volume in the output. The name
of the control is mixN-S, where N is a number that identifies which mixer it is and S which input.
selector A selector unit selects one of multiple audio sources such as mic-in and line-in. The name of the control is
selN-S1S2S3..., where N is a number that identifies which selector unit it is and the sequence of Sn indicates candidate
units for the audio source.
feature A feature unit changes the sound in some way, like bass, treble, mute, or volume. The name of the control is determined in
a heuristic way. If the unit changes the sound to a speaker output terminal, the names of the controls may be out-
puts.speaker.bass, outputs.speaker.treble, outputs.speaker.mute, outputs.speaker, or likewise.
processing A processing unit does one of a number of audio processing functions (e.g., channel up-down mixing, Dolby ProLogic, or cho-
rus effects). The name of the on-off control is proN.M-enable, where N is a number that identifies which processing unit it
is and M which kind. Depending on the type of processing unit there may be other controls as well.
extension An extension unit performs some unspecified audio processing The name of the on-off control is extN-enable, where N is a
number that identifies which processing unit it is.
For more information the USB Audio class specification is indispensable reading.
SEE ALSO
audio(4), usb(4)
USB Approved Class Specification Documents, http://www.usb.org/developers/devclass_docs/.
HISTORY
The uaudio driver appeared in NetBSD 1.5.
BUGS
There is no support for multiple-endpoints audio stream, adaptive recording, async playback, and TYPE-II/III formats.
There is the possibility that a device has multiple mixer items which have the same name.
BSD
September 20, 2011 BSD