Sponsored Content
Top Forums Shell Programming and Scripting grep data on 2nd line and 3rd column Post 302409167 by Jairaj on Wednesday 31st of March 2010 10:18:04 AM
Old 03-31-2010
Thanks Alister for your input.
Anyway my command also work. But Franklin52 code is excellent...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to extract 3rd line 4th column of a file

Hi, Shell script: I would need help on How to extract 3rd line 4th column of a file with single liner Thanks in advance. (4 Replies)
Discussion started by: krishnamurthig
4 Replies

2. Shell Programming and Scripting

Awk multiple lines with 3rd column onto a single line?

I have a H U G E file with over 1million entries in it. Looks something like this: USER0001|DEVICE001|VAR1 USER0001|DEVICE001|VAR2 USER0001|DEVICE001|VAR3 USER0001|DEVICE001|VAR4 USER0001|DEVICE001|VAR5 USER0001|DEVICE001|VAR6 USER0001|DEVICE002|VAR1 USER0001|DEVICE002|VAR2... (4 Replies)
Discussion started by: SoMoney
4 Replies

3. Shell Programming and Scripting

split on the basis of 2nd and 3rd column

file A aa 22 48 ab 22 48 tcf 50 76 gf 50 76 h 89 100 yh 89 100 how can we split the file on the basis of common 2 and third column output like file A-1 aa 22 48 ab 22 48 file A-2 cf 50 76 gf 50 76 (3 Replies)
Discussion started by: cdfd123
3 Replies

4. Shell Programming and Scripting

get 3rd column of nth line

hi; i have a file.txt and its 9th, 10th and 11th line lines are: RbsLocalCell=S2C1 maxPortIP 4 (this is 9th line) RbsLocalCell=S3C1 maxPortIP 4 (this is 10th line) RbsLocalCell=S1C1 ... (11 Replies)
Discussion started by: gc_sw
11 Replies

5. Shell Programming and Scripting

1st column,2nd column on first line 3rd,4th on second line ect...

I need to take one column of data and put it into the following format: 1st line,2nd line 3rd line,4th line 5th line,6th line ... Thanks! (6 Replies)
Discussion started by: batcho
6 Replies

6. Shell Programming and Scripting

Grep special pattern in 3rd column

I have a file (test.dat) that has this pattern: 1000 000001 (92.431343802235503, 90.0) 1000 000002 (87.568656197764497, 80.0) 1000 000003 (150.75815307316083, 150.0) 1000 000004 (29.241846926839159, 20.0) 1000 000005 (110.02128542766, 110.0) 1000 000006 (69.978714572339996, 60.0) 1000... (8 Replies)
Discussion started by: kayak
8 Replies

7. Shell Programming and Scripting

Insert data in first column(if blank) from previous line first column

Dear Team I need to insert field(which is need to taken from previous line's first field) in first column if its blank. I had tried using sed but not find the way. Detail input and output file as below. Kindly help for same. INPUT: SCGR SC DEV DEV1 NUMDEV DCP ... (7 Replies)
Discussion started by: jaydeep_sadaria
7 Replies

8. UNIX for Dummies Questions & Answers

Grep -v value in 2nd column

Trying to do a grep -v on a value in the 2nd column of text. So if the word apple appears in a line in the 2nd column, it would not show up when the file was cat. Seems like a simple enough operation but I just can't figure it out. Any help would be appreciated. Thanks in advance. Are apples... (4 Replies)
Discussion started by: jimmyf
4 Replies

9. UNIX for Dummies Questions & Answers

Want the UNIX code - I want to sum of the 1st column wherever the first 2nd and 3rd columns r equal

I have the code for the below things.. File1 has the content as below 8859 0 subscriberCreate 18 0 subscriberPaymentMethodChange 1650 0 subscriberProfileUpdate 7668 0 subscriberStatusChange 13 4020100 subscriberProfileUpdate 1 4020129 subscriberStatusChange 2 4020307 subscriberCreate 8831... (5 Replies)
Discussion started by: Mahen
5 Replies

10. Linux

Print the 1st column and the value in 2nd or 3rd column if that is different from the values in 1st

I have file that looks like this, DIP-17571N|refseq:NP_651151 DIP-17460N|refseq:NP_511165|uniprotkb:P45890 DIP-17571N|refseq:NP_651151 DIP-19241N|refseq:NP_524261 DIP-19241N|refseq:NP_524261 DIP-17151N|refseq:NP_524316|uniprotkb:O16797 DIP-19588N|refseq:NP_731165 ... (2 Replies)
Discussion started by: Syeda Sumayya
2 Replies
mppenc(1)																 mppenc(1)

NAME
mppenc - Musepack lossy audio codec encoder SYNOPSIS
mppenc [--options] [input_file] [output_file] DESCRIPTION
mppenc is a Musepack lossy audio codec encoder. Musepack is a lossy audio codec specifically optimized for transparent compression of stereo audio at bitrates of 160-180 kbit/s. INPUT FILES
- STDIN (only RIFF WAVE files) /dev/audio soundcard (OSS, 44.1 kHz) *.wav RIFF WAVE file *.raw|cdr RAW PCM file (2ch, 16bit, 44.1kHz) *.pac|lpac LPAC file (Windows only) *.fla|flac FLAC file *.ape Monkey's Audio file (APE extension only) *.rka|rkau RK Audio file (Windows only) *.sz SZIP file *.shn Shorten file *.wv Wavpack file .ofr OptimFROG file (Windows only) Currently only 32, 37.8, 44.1 and 48 kHz, 1-8 channels, 8-32 bit linear PCM is supported. When using one of the lossless compressed for- mats, a proper binary must be installed within the system's $PATH. OUTPUT FILES
*.mpc Musepack file *.mp+|mpp MPEGplus file (deprecated) - STDOUT OPTIONS
--quality 0.00 below telephone, poor quality (~ 20 kbps) --quality 1.00 below telephone, poor quality (~ 30 kbps) --quality 2.00 --telephone telephone, low quality (~ 60 kbps) --quality 3.00 --thumb thumb, low/medium quality (~ 90 kbps) --quality 4.00 --radio radio, medium quality (~ 130 kbps) --quality 5.00 --standard --normal normal (default), high quality (~ 180 kbps) --quality 6.00 --extreme --xtreme extreme, excellent quality (~ 210 kbps) --quality 7.00 --insane insane, excellent quality (~ 240 kbps) --quality 8.00 --braindead braindead, excellent quality (~ 270 kbps) --quality 9.00 above braindead, excellent quality (~ 300 kbps) --quality 10.00 above braindead, excellent quality (~ 350 kbps) In addition, quality scale is effective centesimally (i.e. --quality 4.25). --silent repress console messages (default: off) --verbose increase verbosity (default: off) --longhelp print long help --stderr FILE append messages to file --neveroverwrite never overwrite existing output file (default: off) --interactive ask to overwrite an existing output file (default: on) --overwrite overwrite existing output file (default: off) --deleteinput delete input file after encoding (default: off) --beep beep when encoding is finished (default: off) --unicode unicode input from console (Unix only) --tag key=value add tag 'key' with 'value' as contents --tagfile key=file add tags, take values from a file --tag key add tags, take values from console --artist 'value' shortcut for --tag 'Artist=value' --album 'value' shortcut for --tag 'Album=value' Other possible keys are: debutalbum, publisher, conductor, title, subtitle, track, comment, composer, copyright, publicationright, file- name, recordlocation, recorddate, ean/upc, year, releasedate, genre, media, index, isrc, abstract, bibliography, introplay, media, lan- guage... --skip x skip the first x seconds (default: 0.0) --dur x stop encoding after at most x seconds of encoded audio --fade x fadein+out in seconds --fadein x fadein in seconds (default: 0.0) --fadeout x fadeout in seconds (default: 0.0) --fadeshape x fade shape, see http://www.uni-jena.de/~pfk/mpc/img/fade.png (default: 1.0) --scale x scale input signal by x (default: 1.00000) --scale x,y scale input signal, separate for each channel EXAMPLES
mppenc inputfile.wav mppenc inputfile.wav outputfile.mpc mppenc --radio inputfile.wav outputfile.mpc mppenc --silent --radio --pns 0.25 inputfile.wav outputfile.mpc mppenc --nmt 12 --tmn 28 inputfile.wav outputfile.mpc AUTHOR
This manual page was written by Jorge Salamero Sanz <bencer@cauterized.net> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. 12 June 2007 mppenc(1)
All times are GMT -4. The time now is 03:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy