Sponsored Content
Top Forums Shell Programming and Scripting sed command to change 2nd field Post 302092232 by Julius on Saturday 7th of October 2006 12:51:29 PM
Old 10-07-2006
oh, excellent. Thanks a lot
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to specify the column(field) in sed command

the following command removes the first two characters of the first column, how can I change it to to remove the first two characters of the second column? sed 's/^..//' file1.txt > file2.txt Thanks Joseph (4 Replies)
Discussion started by: jdhahbi
4 Replies

2. Shell Programming and Scripting

Sort alpha on 1st field, numerical on 2nd field (sci notation)

I want to sort alphabetically on the first field and sort in descending numerical order on the 2nd field. With a normal "sort -r -n" it does this: abc ||| 5e-05 ||| bla abc ||| 3 ||| ble def ||| 1 ||| abc def ||| 0.2 ||| def As you can see it ignores the fact that 5e-05 is actually 0.00005... (1 Reply)
Discussion started by: FrancoisCN
1 Replies

3. Shell Programming and Scripting

where to specify the field name in SED command

HI Folks, I know the solution to my question is very easy but i could not find it out. There is CSV file with 20 fields with 5 rows contains different data as below: FBINV,LVO71,GAMFR1,D,104164,16677.36,20090625,102135,20090529,7267,KG,,,,0,,,,DTD,,O,O,,,,,,,,,300588136... (3 Replies)
Discussion started by: chandrakala
3 Replies

4. Shell Programming and Scripting

Remove leading zeroes in 2nd field using sed

Hi Forum. I tried searching the forum but couldn't find a solution for my question. I have the following data and would like to have a sed syntax to remove the leading zeroes from the 2nd field only: Before: 2010-01-01|123|1|1000|2000|500|1500|600|700... (18 Replies)
Discussion started by: pchang
18 Replies

5. Shell Programming and Scripting

awk or sed? change field conditional on key match

Hi. I'd appreciate if I can get some direction in this issue to get me going. Datafile1: -About 4000 records, I have to update field#4 in selected records based on a match in the key field (Field#1). -Field #1 is the key field (servername) . # of Fields may vary # comment server1 bbb ccc... (2 Replies)
Discussion started by: RascalHoudi
2 Replies

6. Shell Programming and Scripting

sed to work on 2nd field only

I have a requirement to replace "\" with "/" in only the 2nd field of the input file which has 2 fields. The field delimiter is "|" Sample records from input file: 1\23|\tmp\user mn\wer|\home\temp Expected output: 1\23|/tmp/user mn\wer|/home/temp I used sed 's/\\/\//g' ... (2 Replies)
Discussion started by: krishmaths
2 Replies

7. Shell Programming and Scripting

Awk,sed : change every 2nd field ":" to "|"

Hi Experts, I have a string with colon delimited, want 2nd colon to be changed to a pipe. data: 101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3: I am trying with sed, but can change only 1 occurance: echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
Discussion started by: rveri
5 Replies

8. Shell Programming and Scripting

Datestamp format 2nd change in csv file (awk or sed)

I have a csv file formatted like this: 2014-08-21 18:06:26,A,B,12345,123,C,1232,26/08/14 18:07and I'm trying to change it to MM/DD/YYYY HH:MM for both occurances. I have got this: awk -F, 'NR <=1 {print;next}{"date +%d/%m/%Y\" \"%H:%m -d\""$1 "\""| getline dte;$1=dte}1' OFS="," test.csvThis... (6 Replies)
Discussion started by: say170
6 Replies

9. UNIX for Dummies Questions & Answers

Combine Similar Output from the 2nd field w.r.t 1st Field

Hi, For example: I have: HostA,XYZ HostB,XYZ HostC,ABC I would like the output to be: HostA,HostB: XYZ HostC:ABC How can I achieve this? So far what I though of is: (1 Reply)
Discussion started by: alvinoo
1 Replies

10. Shell Programming and Scripting

sed - use back reference in 2nd command

I have data that looks like this: <Country code="US"><tag>adsf</tag><tag>bdfs</tag></Country><Country code="CA"><tag>asdf</tag><tag>bsdf</tag></Country> I want to grab the country code save it, then drop each new "<..." onto a new line with the country code added to the beginning of each So,... (9 Replies)
Discussion started by: JenniferAmon
9 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 04:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy