Sponsored Content
Full Discussion: Better way to do it ?
Top Forums Shell Programming and Scripting Better way to do it ? Post 302950971 by nua7 on Thursday 30th of July 2015 04:13:29 PM
Old 07-30-2015
Better way to do it ?

Hi All,
I have a file with 70 columns which is pipe delimited. I need to search certain values in column 13 and print the record line if it matches.

The following command works, but I think there should be a better way to do this.
Any inputs will be appreciated.

Code:
awk -F "|" '$13=="190" || $13=="191" || $13=="099" || $13=="192" || $13=="193" || $13=="198" || $13=="199" || $13=="298" || $13=="800" {print $0}' $filename > av01

 
MIXERCTL.CONF(5)					      BSD File Formats Manual						  MIXERCTL.CONF(5)

NAME
mixerctl.conf -- audio mixer configuration file SYNOPSIS
mixerctl.conf DESCRIPTION
The /etc/mixerctl.conf file consists of mixerctl(1) variables to set at boot time. Each line of mixerctl.conf has the following format: variable=value To generate a mixerctl.conf from the current mixer settings, execute: mixerctl -a > /etc/mixerctl.conf Set mixerctl to YES in rc.conf(5) to have the variables set at boot time. Additionally, you can have the settings saved and restored for the devices of your choice by listing them in mixerctl_mixers in rc.conf(5). FILES
/etc/mixerctl.conf EXAMPLES
Example mixer settings for an esa(4) audio adapter: outputs.master=255,255 outputs.master.mute=off outputs.mono=255 outputs.mono.mute=on outputs.mono.source=mixerout outputs.headphones=255,255 outputs.headphones.mute=off outputs.tone=255,255 inputs.speaker=255 inputs.speaker.mute=off inputs.phone=191 inputs.phone.mute=on inputs.mic=191 inputs.mic.mute=on inputs.mic.preamp=off inputs.mic.source=mic0 inputs.line=191,191 inputs.line.mute=on inputs.cd=191,191 inputs.cd.mute=on inputs.video=255,255 inputs.video.mute=off inputs.aux=255,255 inputs.aux.mute=off inputs.dac=191,191 inputs.dac.mute=off record.source=mic record.volume=255,255 record.volume.mute=off record.mic=0 record.mic.mute=off outputs.loudness=off outputs.spatial=off outputs.spatial.center=0 outputs.spatial.depth=0 SEE ALSO
mixerctl(1), rc.conf(5) HISTORY
The mixerctl.conf configuration file first appeared in NetBSD 2.0. BSD
April 5, 2003 BSD
All times are GMT -4. The time now is 11:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy