11-27-2009
I am processing each line, so i need to need to do it another way
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I use read command to get the input text, When i try to get the line starting with spaces or ending with spaces it automatically truncates the spaces and displays the remaining content.
Code i tried (UserInput.sh):
#!/bin/bash
echo -n "Enter some text > "
read text
echo "You... (3 Replies)
Discussion started by: PrakashChinna
3 Replies
2. Shell Programming and Scripting
Hi,
Could someone has any suggestions on this? When read a line from a file, I need to check the first char in the line, it could be a space or any char. But the leading spaces are removed by read.
Thanks. (2 Replies)
Discussion started by: momi
2 Replies
3. Shell Programming and Scripting
Dears,
I developed a shell script to read varibales from text file as the following:
cat /dev/null > /rename-OUT.txt
while read line
do
set -- `echo $line`
snmpset -c dslmibs $1 sysName.0 octetstring $2
after=$(snmpget -c dslmibs $1 sysName.0 | cut -d: -f3)
echo "$1,$2,$after" >>... (1 Reply)
Discussion started by: ahmed.zaher
1 Replies
4. Shell Programming and Scripting
Hi,
I need a command in UNIX KSH below is the description...
MAPPING DESCRIPTION ="Test Mapping for the calid inputs" ISVALID ="YES" NAME ="m_test_xml" OBJECTVERSION ="1" VERSIONNUMBER ="1"
unix ksh command to read the DESCRIPTION and write to a file
Test Mapping for the calid inputs... (3 Replies)
Discussion started by: perlamohan
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies
6. Shell Programming and Scripting
Hi,
I have gps receiver log..its giving readings .like below
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GPSD,R=1
$GPGSV,3,1,11,08,16,328,40,11,36,127,00,28,33,283,39,20,11,165,00*71... (3 Replies)
Discussion started by: gudivada213
3 Replies
7. Shell Programming and Scripting
I am using the while-loop to read a file.
The file has lines with null-terminated strings (words, actually.)
What I have by that reading - just a first word up to '\0'!
I need to have whole string up to 'new line' - (LF, 10#10, 16#A)
What I am doing wrong?
#make file 'grb' with... (6 Replies)
Discussion started by: alex_5161
6 Replies
8. Shell Programming and Scripting
Hi,
i have file which contains data as below(Only sample shown, it may contain more data similar to the one shown here)
i need to read this file line by line and generate an output file like the one below
i.e based on N value the number of MSISDNs will vary, if N=1 then the following... (14 Replies)
Discussion started by: aemunathan
14 Replies
9. Shell Programming and Scripting
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
Discussion started by: Ferocci
8 Replies
10. Shell Programming and Scripting
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Discussion started by: pat_pramod
3 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