Yeah sure. Its something like this
Here not all lines are same. But still they are duplicates. I want to start removing this duplicate lines by beginning my search from 'LoggingEx...' so that i can skip the starting date part. If I use the awk command then it considers all the above lines as different and gives the same output which is not desired. Hope this helps....
Thanks
Last edited by Scrutinizer; 12-12-2012 at 05:16 AM..
Reason: code tags
Hi every body
I have some text file with a lots of duplicate rows like this:
165.179.568.197
154.893.836.174
242.473.396.153
165.179.568.197
165.179.568.197
165.179.568.197
154.893.836.174
how can I delete the repeated rows?
Thanks
Saeideh (2 Replies)
Hi,
I have a very big (with around 1 million entries) txt file with IPv4 addresses in the standard format, i.e. a.b.c.d
The file looks like
10.1.1.1
10.1.1.1
10.1.1.1
10.1.2.4
10.1.2.4
12.1.5.6
.
.
.
.
and so on....
There are duplicate/multiple entries for some IP... (3 Replies)
Hi. I have to delete the content between all the occurrences of the xml tags in a single file.
For example:
* The tags <script>.....................</script> occurs more than once in the same file.
* It follows tagging rules meaning a start tag will be followed by an end tag. Will not have... (9 Replies)
Hi,
I have a file with date in it like:
UserString1
UserString2
UserString3
UserString4
UserString5
I need two entries for each line so it reads like
UserString1
UserString1
UserString2
UserString2
etc. Can someone help me with the awk command please?
Thanks (4 Replies)
Hi all,
As of now am using an awk command to check the number of columns in a file that has 10 lakh rows.
Is it possible to remove that particular line having an extra column and copy the remaining lines to a new file ?
YOUR HELP IS HIGHLY APPRECIATED. THANKS IN ADVANCE (5 Replies)
Dear folks
I have a map file of around 54K lines and some of the values in the second column have the same value and I want to find them and delete all of the same values. I looked over duplicate commands but my case is not to keep one of the duplicate values. I want to remove all of the same... (4 Replies)
I create a CGI in bash/html.
My awk script looks like :
echo "<table>"
for fn in /var/www/cgi-bin/LPAR_MAP/*;
do
echo "<td>"
echo "<PRE>"
awk -F',|;' -v test="$test" '
NR==1 {
split(FILENAME ,a,"");
}
$0 ~ test {
if(!header++){
... (12 Replies)
Discussion started by: Tim2424
12 Replies
LEARN ABOUT SUSE
indexdump
INDEXDUMP(1) User Contributed Perl Documentation INDEXDUMP(1)NAME
indexdump - Show the content of the index file
FORMAT
indexdump [options] file [ tag ]
where options are
--debug output record separator (default newline)
--type specifies the num/date/char type of the index
--start defines the value to start dump from
--n prints also the total number of records
in the file
SYNOPSIS
indexdump rooms.cdx FACILITY
indexdump --debug=14 --start=Dub rooms.cdx ROOMNAME
DESCRIPTION
Indexdump prints to standard output the content of the index file. The type of the index is one of those supported by the XBase::Index
Perl module (cdx, idx, ntx, ndx, mdx).
The output contains the index key and the value, which is the record number in the correcponding dbf file.
For mulitag index files (like cdx), you need to specify the tag name to get the actual data.
AUTHOR
(c) 1999--2000 Jan Pazdziora, adelton@fi.muni.cz, http://www.fi.muni.cz/~adelton/ at Faculty of Informatics, Masaryk University in Brno,
Czech Republic
SEE ALSO perl(1); XBase::Index(3)perl v5.12.1 2010-07-05 INDEXDUMP(1)