02-09-2009
but its printing the input numbers as it is in output
I'm unable to get the result
Sorry for the trouble man
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Gurus,
I have one file which is having multiple columns and also this file is not always contain the exact columns; sometimes it contains 5 columns or 12 columns. Now, I need to find the difference from that particular file. Here is the sample file:
param1 | 10 | 20 | 30 |
param2 | 10 |... (6 Replies)
Discussion started by: buzzusa
6 Replies
2. Shell Programming and Scripting
Hello guys,
Please help me to solve this problem. I have tried some awk commands but couldn't succeed.
I have a tab delimited file where each record is separated by ------ and 4th column of each record is same.
<INPUT FILE>
------
peon 53931587 53931821 ... (12 Replies)
Discussion started by: sam_2921
12 Replies
3. Shell Programming and Scripting
Dear All,
I need to find the difference between two adjacent columns. The file is having 'i' columns and i need to find the difference between two adjacent columns (like $1 difference $2; $2 difference $3; .... and $(i-1) difference $i). I have used the following coding
awk '{ for (i=1; i<NF;... (7 Replies)
Discussion started by: Fredrick
7 Replies
4. Shell Programming and Scripting
one file
. . importing table employee 119
. . importing table jobs 1
2nd file
. . importing table employee 120
. . importing table jobs 1
and would like... (2 Replies)
Discussion started by: jhonnyrip
2 Replies
5. Shell Programming and Scripting
hi I am very new to shell scripting. i wanted to achieve this..
Col1 Col2 Col3 Col4
aa 23 bb 32
aa 34 bb 12
aa 45 bb 345
kk 20 ss 50
kk 30 ss 50
tt 10 vv 50
Desired output is
Col1 Col2 Col3 Col4 Difference Count
aa 23 bb ... (1 Reply)
Discussion started by: empyrean
1 Replies
6. Shell Programming and Scripting
Hi Friends,
I have the following file
chr1 1 2
chr1 2 3
chr1 3 4
chr1 4 5
chr1 5 6
chr1 19 20
chr1 20 21
chr1 21 22
I want to compare the third column of record 1 to second column of next record and if the difference is zero, consider its third column and match it to next record... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
7. Shell Programming and Scripting
Hi everyone,
I am trying to find sty all day.
I have two files:
File 1:
N 82 AAA A 1 0.67
N 83 BBB B 1 0.79
N 84 CCC C 1 0.11
File 2:
N 82 AAA A 1 0.63
N 83 BBB B 1 0.03
N 84 CCC C 1 0.08
I want to calculate... (2 Replies)
Discussion started by: Tzole
2 Replies
8. Shell Programming and Scripting
Hi Friends,
My input file is like this
chr1 100 200
chr1 300 330
chr1 2000 2000
chr1 5000 5000
chr2 7790 7890
chr2 8000 8000
If the difference of third and second columns is zero, then subtract 500 from second column and add 500 to the third column.
So, my output would be
chr1... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
9. Shell Programming and Scripting
Hi,
I have two files which look like this
cat waitstate.txt
18.2
82.1
cat gostate.txt
5.6
5.8
6.1
6.3
6.6
6.9
7.2
7.5 (4 Replies)
Discussion started by: jamie_123
4 Replies
10. Shell Programming and Scripting
I have a input text file in this format:
ITEM1 10.9 20.1
ITEM2 11.6 12
ITEM3 14 15.7
ITEM5 20 50.6
ITEM6 25 23.6
I want to print those lines which have more than 5% difference between second and third columns. (8 Replies)
Discussion started by: ctrld
8 Replies
LEARN ABOUT DEBIAN
anytopnm
anytopnm(1) General Commands Manual anytopnm(1)
NAME
anytopnm - attempt to convert an unknown type of image file to a portable anymap
SYNOPSIS
anytopnm [file]
DESCRIPTION
anytopnm converts the input image, which may be in any of dozens of graphics formats, to PBM, PGM, or PPM format, depending on that nature
of the input image, and outputs it to Standard Output.
To determine the format of the input, anytopnm uses the file program (possibly assisted by the magic numbers file fragment included with
Netpbm). If that fails (very few image formats have magic numbers), anytopnm looks at the filename extension. If that fails, anytopnm
punts.
The type of the output file depends on the input image.
If file indicates that the input file is compressed (either via Unix compress, gzip, or bzip compression), anytopnm uncompresses it and
proceeds as above with the uncompressed result.
If file indicates that the input file is encoded by uuencode or btoa, anytopnm decodes it and proceeds as above with the decoded result.
If file is - or not given, anytopnm takes its input from Standard Input.
SEE ALSO
pnmfile(1), pnm(5), file(1)
AUTHOR
Copyright (C) 1991 by Jef Poskanzer.
11 July 2000 anytopnm(1)