06-25-2013
Thank you all for your valuable inputs it helped me.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi.
I have a tab separated file that has a couple nearly identical lines. When doing:
sort file | uniq > file.new
It passes through the nearly identical lines because, well, they still are unique.
a)
I want to look only at field x for uniqueness and if the content in field x is the... (1 Reply)
Discussion started by: rocket_dog
1 Replies
2. Shell Programming and Scripting
How do I print all the fields of a record except for the $(NF) field? (4 Replies)
Discussion started by: locoroco
4 Replies
3. Shell Programming and Scripting
Hi,
Is there any short method to print from a particular field till another filed using awk?
Example File:
File1
====
1|2|acv|vbc|......|100|342
2|3|afg|nhj|.......|100|346
Expected output:
File2
====
acv|vbc|.....|100
afg|nhj|.....|100 (8 Replies)
Discussion started by: machomaddy
8 Replies
4. Shell Programming and Scripting
Hello;
I have a file consists of 4 columns separated by tab. The problem is the third fields. Some of the them are very long but can be split by the vertical bar "|". Also some of them do not contain the string "UniProt", but I could ignore it at this moment, and sort the file afterwards. Here is... (5 Replies)
Discussion started by: yifangt
5 Replies
5. Shell Programming and Scripting
I'm trying to compare 2 files for differences in a selct number of fields. When differnces are found it will write the whole record of the second file including appending '|C' out to a delta file. Each record will have 20 fields, but only want to do comparison of 1st 15 fields. The 1st field of... (7 Replies)
Discussion started by: sljnk
7 Replies
6. UNIX for Dummies Questions & Answers
Hello Everyone,
I've got a comma-delimited file that looks like this:
0012,123 ,456 ,05/12/2014
0123,525 ,286 ,05/12/2014
0456,791 ,300 ,05/12/2014
1095,759 ,300 ,05/12/2014
1344,576 ,292 ,05/12/2014
1558,551 ,283 ,05/12/2014
002183719, , ... (9 Replies)
Discussion started by: Scottie1954
9 Replies
7. Shell Programming and Scripting
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
Discussion started by: newstart
9 Replies
8. Shell Programming and Scripting
The below code works great, kindly provided by @Don Cragun, the lines in bold print the current output. Since some of the fields printed can be blank some of the fields are shifted. I can not seem too add . to the blank fields like in the desired output. Basically, if there is nothing in the field... (10 Replies)
Discussion started by: cmccabe
10 Replies
9. Shell Programming and Scripting
In the below I am trying to use awk to match all the $13 values in input, which is tab-delimited,
that are in $1 of gene which is just a single column of text.
However only the line with the greatest $9 value in input needs to be printed.
So in the example below all the MECP2 and LTBP1... (0 Replies)
Discussion started by: cmccabe
0 Replies
10. Shell Programming and Scripting
In the awk below I am trying to print the entire line, along with the header row, if $2 is SNV or MNV or INDEL. If that condition is met or is true, and $3 is less than or equal to 0.05, then in $7 the sub pattern :GMAF= is found and the value after the = sign is checked. If that value is less than... (0 Replies)
Discussion started by: cmccabe
0 Replies
LEARN ABOUT NETBSD
mixerctl
MIXERCTL(1) BSD General Commands Manual MIXERCTL(1)
NAME
mixerctl -- control audio mixing
SYNOPSIS
mixerctl [-d file] [-n] [-v] -a
mixerctl [-d file] [-n] [-v] name ...
mixerctl [-d file] [-n] -w name=value ...
mixerctl [-d file] [-n] -w name++ ...
mixerctl [-d file] [-n] -w name-- ...
mixerctl [-d file] [-n] -w name+=value ...
mixerctl [-d file] [-n] -w name-=value ...
DESCRIPTION
The mixerctl command displays or sets various audio system mixing variables. If a list of variables is present on the command line, then
mixerctl prints the current value of those variables for the specified device. If the -a flag is specified, all variables for the device are
printed. If the -w flag is specified, mixerctl attempts to set the specified variables to the given values.
The -d flag can be used to give an alternative mixer device. The default is /dev/mixer.
The -n flag suppresses printing of the variable name.
The -v flag shows the possible values of enumeration and set valued variables. Enumerated values are shown in brackets (``[]'') and set val-
ues are shown in curly braces (``{}'').
The exact set of controls that can be manipulated depends on the mixer. The general format (in both getting and setting a value) is
class.name = value
class can have values like inputs or outputs, indicating that the control affects the input or output of the mixer, respectively. name indi-
cates what part of the mixer the control affects. Continuous mixer values, e.g., volume, have numeric values in the range 0-255. If value
can be set for each channel independently, the values are printed separated by commas. Discrete mixer values, e.g., the recording source,
have symbolic names. Depending on the mixer it may either be an enumeration or a set.
The suffixes ++ and -- can be used to step through the values of a mixer control. For numeric controls, these operators increase or
decrease, respectively, the value by an amount (the delta) suitable to make the control assume the next possible value. For binary controls,
these operators toggle between on and off.
The operators += and -= change the value of a mixer control by the indicated number of steps.
ENVIRONMENT
MIXERDEVICE the mixer device to use.
FILES
/dev/mixer mixer audio device
/etc/mixerctl.conf mixer configuration file
EXAMPLES
The command
mixerctl -a -v
can produce
inputs.mic=0,0 volume
inputs.mic.mute=off [ off on ]
inputs.cd=220,220 volume
inputs.cd.mute=off [ off on ]
inputs.dac=220,220 volume
inputs.dac.mute=off [ off on ]
record.record=220,220 volume
record.record.source=mic [ mic cd dac ]
monitor.monitor=0 volume
COMPATIBILITY
The old -f flag is still supported. This support will be removed eventually.
SEE ALSO
audioctl(1), audio(4), mixerctl.conf(5), sysctl(8)
HISTORY
The mixerctl command first appeared in NetBSD 1.3.
BSD
August 15, 2008 BSD