Hi,
This is my input file:
ali 5 usa abc
abu 4 uk bca
alan 6 brazil bac
pinky 10 utah sdc
My desired output:
pinky 10 utah sdc
alan 6 brazil bac
ali 5 usa abc
abu 4 uk bca
Based on the column two, I want to do the descending order and print out other related column at the... (3 Replies)
Hi. How do I find an expression with awk in only one column, and if it fits, then print that whole column.
1 apple oranges
2 bannanas pears
3 cats dogs
4 hesaid shesaid
echo "which number:"
read NUMBER (user inputs number 2 for this example)
awk " /$NUMBER/ {field to search is field... (2 Replies)
Hi friends,
My file is like:
Second file is :
I need to print the rows present in file one, but in order present in second file....I used
while read gh;do
awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile
done < secondfile
but the output I am... (14 Replies)
Hi Team,
I have a requirement to print the column or find the column number of a particular string in delimited (;) file.
Ex:
aaa;bbb;ccc;rrr;mmm;
gggg;rrr;mmmm;ssss;eee;aaa;
ccc;gggg;tttt;bbbb;dddd;ggggg;rrr;
my file contains 1000+ rows like above example with semicolon... (3 Replies)
Dear All,
I have a data file input.csv like below. (Only five column shown here for example.)
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
3,2,4,5,6
5,3,5,5,6
From this I want the below output
Data1,StepNo,Data2,Data3,Data4
2,1,3,4,5
3,1,5,6,7
where the second column... (4 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Input file :
5 20
500 2
20 41
41 0
23 1
Desired output :
5
2
20
0
1
By comparing column 1 and 2 in each line, I hope can print out the column with smallest number.
I did try the following code, but it don't look good :( (2 Replies)
Example:
I have files in below format
file 1:
zxc,133,joe@example.com
cst,222,xyz@example1.com
File 2 Contains:
hxd
hcd
jws
zxc
cst
File 1 has 50000 lines and file 2 has around 30000 lines :
Expected Output has to be :
hxd
hcd
jws (5 Replies)
Discussion started by: TestPractice
5 Replies
LEARN ABOUT DEBIAN
g3data
g3data (1) General Commands Manual g3data (1)
NAME
g3data -- A tool for extracting data from graphs.
SYNOPSIS
g3data [-max x y] [-scale factor] [-coords llx lly rux ruy] [-errors] [-lnx] [-lny] [filename(s) ...]
DESCRIPTION
2001-01-01;
g3data is a tool for extracting data from scanned graphs. For graphs published in scientific articles the actual data is usually not
explicitly given ; g3data makes the process of extracting this data easy.
OPTIONS -max x y If picture is larger x-wise than x or y-wise than y, the picture is scaled down accordingly otherwise this parameter has no
effect.
-scale factor
Scales the picture size by factor. This parameter nullifies effect of the -max parameter.
-coords llx lly rux ruy
Preset the coordinates of the left lower (ll) corner and the right upper (ru) corner.
-errors Print out the error of the x value in column 3 and the error of y value in column 4 of the output.
-lnx Use logarithmic scale for x coordinates.
-lny Use logarithmic scale for y coordinates.
filename(s) ...
The filename(s) of the image(s) to open. Supported image formats: PNG, XPM, JPEG, TIFF, PNM, RAS, BMP and GIF.
USAGE
g3data -scale 2 -errors test1.png
g3data -scale 2 -lny -errors test2.png
BUGS
None known.
AUTHOR
Jonas Frantz jonas.frantz@welho.com
g3data (1)