Yes, the line numbers at the end were added for demonstration purpose.
---------- Post updated at 05:10 PM ---------- Previous update was at 02:52 PM ----------
Quote:
Originally Posted by MadeInGermany
I think the (line number) are added for demonstration, not in the real file?
Then it is with awk
For big files the END section should sort on the line numbers. With perl it becomes
I tried it, but it just returned the original values.
Hi,
I am trying to remove duplicate lines from a file. For example the contents of example.txt is:
this is a test
2342
this is a test
34343
this is a test
43434
and i want to remove the "this is a test" lines only and end up with the numbers in the file, that is, end up with:
2342... (4 Replies)
hi all
can anyone please let me know if there is a way to find out duplicate rows in a file. i have a file that has hundreds of numbers(all in next row).
i want to find out the numbers that are repeted in the file.
eg.
123434
534
5575
4746767
347624
5575
i want 5575
please help (3 Replies)
I have a file content like below.
"0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","",""
"0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","",""
"0000000","ABLNCYI","BOTH",1049,2058,"XYZ","5711002","","Y","","","","","","","",""... (5 Replies)
Hi,
I need to concatenate three files in to one destination file.In this if some duplicate data occurs it should be deleted.
eg:
file1:
-----
data1 value1
data2 value2
data3 value3
file2:
-----
data1 value1
data4 value4
data5 value5
file3:
-----
data1 value1
data4 value4 (3 Replies)
Hi,
I am processing a file and would like to delete duplicate records as indicated by one of its column. e.g.
COL1 COL2 COL3
A 1234 1234
B 3k32 2322
C Xk32 TTT
A NEW XX22
B 3k32 ... (7 Replies)
Hi all,
I have written one shell script. The output file of this script is having sql output.
In that file, I want to extract the rows which are having multiple entries(duplicate rows).
For example, the output file will be like the following way.
... (7 Replies)
notes: i am using cygwin and notepad++ only for checking this and my OS is XP.
#!/bin/bash
typeset -i totalvalue=(wc -w /cygdrive/c/cygwinfiles/database.txt)
typeset -i totallines=(wc -l /cygdrive/c/cygwinfiles/database.txt)
typeset -i columnlines=`expr $totalvalue / $totallines`
awk -F' ' -v... (5 Replies)
Gurus,
From a file I need to remove duplicate rows based on the first column data but also we need to consider a date column where we need to keep the latest date (13th column).
Ex:
Input File:
Output File:
I know how to take out the duplicates but I couldn't figure out... (5 Replies)
Hi everybody
I have a .txt file that contains some assembly code for optimizing it i need to remove some replicated parts.
for example I have:e_li r0,-1
e_li r25,-1
e_lis r25,0000
add r31, r31 ,r0
e_li r28,-1
e_lis r28,0000
add r31, r31 ,r0
e_li r28,-1 ... (3 Replies)
How can i get the duplicates rows from a file using unix, for example i have data like
a,1
b,2
c,3
d,4
a,1
c,3
e,5
i want output to be like
a,1
c,3 (4 Replies)
Discussion started by: ggupta
4 Replies
LEARN ABOUT LINUX
wxgridsizer
wxGridSizer(3erl) Erlang Module Definition wxGridSizer(3erl)NAME
wxGridSizer - See external documentation: wxGridSizer.
DESCRIPTION
See external documentation: wxGridSizer .
This class is derived (and can use functions) from:
wxSizer
DATA TYPES
wxGridSizer() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
new(Cols::integer()) -> wxGridSizer()
Equivalent to new(Cols, []) .
new(Cols::integer(), Options::[Option]) -> wxGridSizer()
Types Option = {vgap, integer()} | {hgap, integer()}
See external documentation .
new(Rows::integer(), Cols::integer(), Vgap::integer(), Hgap::integer()) -> wxGridSizer()
See external documentation .
getCols(This::wxGridSizer()) -> integer()
See external documentation .
getHGap(This::wxGridSizer()) -> integer()
See external documentation .
getRows(This::wxGridSizer()) -> integer()
See external documentation .
getVGap(This::wxGridSizer()) -> integer()
See external documentation .
setCols(This::wxGridSizer(), Cols::integer()) -> ok
See external documentation .
setHGap(This::wxGridSizer(), Gap::integer()) -> ok
See external documentation .
setRows(This::wxGridSizer(), Rows::integer()) -> ok
See external documentation .
setVGap(This::wxGridSizer(), Gap::integer()) -> ok
See external documentation .
destroy(This::wxGridSizer()) -> ok
Destroys this object, do not use object again
AUTHORS
<>
wxErlang 0.98.9 wxGridSizer(3erl)