Sponsored Content
Full Discussion: recoding/ converting numbers
Top Forums Shell Programming and Scripting recoding/ converting numbers Post 302687659 by raj_saini20 on Friday 17th of August 2012 01:48:43 AM
Old 08-17-2012
Are you using the code on same set of data you have provided or to other data.
if you are using another set of data then please provide me that data.

As i am getting the output as
Code:
id1 id1 1 1 0 1 2 0
id3 id3 0 0 1 1 2 0
id5 id5 0 0 0 0 NA 0

for this code on data given by you.
I had tested on HP-UX
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

seperating records with numbers from a set of numbers

I have two files one (numbers file)contains the numbers(approximately 30000) and the other file(record file) contains the records(approximately 40000)which may or may not contain the numbers from that file. I want to seperate the records which has the field 1=(any of the number from numbers... (15 Replies)
Discussion started by: Shiv@jad
15 Replies

2. Shell Programming and Scripting

read numbers from file and output which numbers belongs to which range

Howdy experts, We have some ranges of number which belongs to particual group as below. GroupNo StartRange EndRange Group0125 935300 935399 Group2006 935400 935476 937430 937459 Group0324 935477 935549 ... (6 Replies)
Discussion started by: thepurple
6 Replies

3. Shell Programming and Scripting

recoding data points using SED??

Hello all, I have a data file that needs some serious work...I have no idea how to implement the changes that are needed! The file is a genotypic file with >64,000 columns representing genetic markers, a header line, and >1100 rows that looks like this: ID 1 2 3 4 ... (7 Replies)
Discussion started by: doobedoo
7 Replies

4. UNIX for Dummies Questions & Answers

Replace US numbers with European numbers

hey, I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00) i want all the numbers to be in european notation. the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of: sed 's/,/\./'... (2 Replies)
Discussion started by: FOBoy
2 Replies

5. Shell Programming and Scripting

the smallest number from 90% of highest numbers from all numbers in file

Hello All, I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns. I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions. If I... (11 Replies)
Discussion started by: Apfik
11 Replies

6. UNIX for Dummies Questions & Answers

Print numbers and associated text belonging to an interval of numbers

##### (0 Replies)
Discussion started by: lucasvs
0 Replies

7. Shell Programming and Scripting

Simple perl help - converting numbers

Hi friends, I'm very new to perl and got some requirement. I've input numbers which has size of 17 characters like below: -22500.0000000000 58750.00000000000 4944.000000000000 -900.000000000000 272.0000000000000 I need to convert these numbers from negative to positive and positive... (4 Replies)
Discussion started by: ganapati
4 Replies

8. Shell Programming and Scripting

Recoding data in a matrix from an existing file

Hi, I was wondering if someone would be able to help with extrapolating information from a file and filling an existing matrix with that information. I have made a matrix like this (file 1): A B C D 1 2 3 4 I have another file with data like this (file 2): 1 A 1 C 3 C 4 B... (1 Reply)
Discussion started by: hubleo
1 Replies

9. Shell Programming and Scripting

Adding (as in arithmetic) to numbers in columns in file, and writing new file with new numbers

Hi again. Sorry for all the questions — I've tried to do all this myself but I'm just not good enough yet, and the help I've received so far from bartus11 has been absolutely invaluable. Hopefully this will be the last bit of file manipulation I need to do. I have a file which is formatted as... (4 Replies)
Discussion started by: crunchgargoyle
4 Replies

10. UNIX for Beginners Questions & Answers

Decimal numbers and letters in the same collums: round numbers

Hi! I found and then adapt the code for my pipeline... awk -F"," -vOFS="," '{printf "%0.2f %0.f\n",$2,$4}' xxx > yyy I add -F"," -vOFS="," (for input and output as csv file) and I change the columns and the number of decimal... It works but I have also some problems... here my columns ... (7 Replies)
Discussion started by: echo manolis
7 Replies
DR_CDRIP(1)							       Draai							       DR_CDRIP(1)

NAME
dr_cdrip - rip audio cd's to ogg SYNOPSIS
dr_cdrip [args] < id3-tag-file DESCIPTION
dr_cdrip sets up a cdparanoia(1) - oggenc(1) pipe for each track on your audio cd, so that the audio on your cd will be stored as .ogg files on your harddisk. args will get passed to each songs' oggenc(1) invocation. id3-tag-file could look like this: Jaffa - Star 67 Think of one - Den Antwaarpse Shabi Klute - Angry Woman Electrotwist - The Smurfer Evil characters are discarded from the file, we don't want them to appear in filenames. If a line lacks a ' - ', the line is assumed to be a title. Defauls setting of oggenc(1)'s --quality level is 7, override by setting the CDRIP_QUALITY environment variable. Note: mp3's id3 tags seem to be called "comments" in the .ogg world. EXAMPLE
dj@gelfand ~$ export CDRIP_QUALITY=9 dj@gelfand /h.../The_New_York_Contemporary_Five$ dr_cdrip -l "The New York Contemporary Five" -a "Archie Shepp" -c "description=Don Cherry: crnt, Archie Shepp: ts, Don Moore: b, JC Moses:d" -c "genre=Jazz" -c "date=1963" -c "location=Copenhagen" -c "copyright=1991 Storyville Records" -c "license=All Rights Reserved" -c "organization=Storyville" -c "contact=http://www.storyville-records.com/" -c "diskid=bd10c70d" < /tmp/songlist See DISCID HOWTO on http://freedb.org/modules.php?name=Sections&sop=viewarticle&artid=6 for info on disk id. Beware! A diskid comment is _not_ mentioned in the xiph.org suggestions! (oggenc's -t will be used by dr_cdrip. -a might be.) supported extra comments are (see ogg123.c) VERSION=, TRACKNUMBER=, ISRC= ARTIST is -a, ALBUM is -l TITLE is -t. VERSION is e.g. 'Biosphere Foo Mix'. Multipe ARTIST tags can occur; this use is encouraged if applicable. -c foo will be displayed by ogg123 as 'Comment: foo'. Run something like: cdcd tracks | sed 's/^.*] *//' | sed 's/ $//' to extract a songlist from a cddb database. BUGS
The format of the songinfo input file is non-standard. Support for cddb is lacking. SEE ALSO
http://xiph.org/ogg/vorbis/doc/v-comment.html abcde - A Better CD Encoder at http://www.hispalinux.es/~data/abcde.php VERSION, SOURCE This file is maintained at http://git.mdcc.cx/draai HISTORY
First version written 2001-01-09. Last maintenance, as of 2007-08-22, done at 2005-12-14. COPYRIGHT
Copyright: AX 2001-2005 Joost van Baal This program is in the public domain. AUTHOR
Joost van Baal <spamhere@mdcc.cx> draai 20100511 2009-12-16 DR_CDRIP(1)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy