Thread View: news.admin.peering
3 messages
3 total messages
Started by bobo
Sun, 07 Aug 2011 13:04
Need Utility to..
Author: bobo
Date: Sun, 07 Aug 2011 13:04
Date: Sun, 07 Aug 2011 13:04
18 lines
1555 bytes
1555 bytes
I need a utility to compare arround 10+ Active.dat or a program that can compare 10 + text files to get only line that are all the 10 text files Thanks ps: i try compare with many prog like notepad++ but it does only for 2 files and it not process the most commun text files -- Pass/create Thru http://gall.mine.nu DC++ , Chat , Comics , peering , FORUM We Create/TOSS uucp Bag for/from your NNTP SERVER
Re: Need Utility to..
Author: Klaus Alexander Seistrup
Date: Sun, 07 Aug 2011 14:46
Date: Sun, 07 Aug 2011 14:46
35 lines
2514 bytes
2514 bytes
bobo@m.com wrote:
> I need a utility to compare arround 10+ Active.dat
> or a program that can compare 10 + text files
>
> to get only line that are all the 10 text files
If you have access to a un*x box (or a cygwin environment) you could
do something like
#!/bin/sh
cat "${@}" \
| sort \
| uniq -c \
| while read NUM LINE
do
if [ "${NUM}" = "${#}" ]; then
echo "${LINE}"
fi
done
# eof
The shell script, when called with the names of the relevant files,
will find lines that appear in all files. You will have to change
the script if you wish to compare active files, since you only
want to compare the first word on each line (one solution could be
to insert “| awk '{ print $1 }' \” between cat and sort).
Cheers,
--
Klaus Alexander Seistrup | Bitcoin tip jar
gopher://port70.dk/ | 1KLAUS2XgGoov4RwxbYoBWLvWUaLxcDZ5u
Re: Need Utility to..
Author: D. Stussy
Date: Sun, 07 Aug 2011 19:50
Date: Sun, 07 Aug 2011 19:50
21 lines
1736 bytes
1736 bytes
<bobo@m.com> wrote in message news:jjvs37tm00d571c26hjkk6grpp9fa416ce@4ax.com... > > I need a utility to compare arround 10+ Active.dat > or a program that can compare 10 + text files > > to get only line that are all the 10 text files > > > Thanks > > ps: i try compare with many prog like notepad++ > but it does only for 2 files and it not process the most commun text > files 1) Wrong group. 2) If you have ISC's INN, look at actsync. You may only be able to compare two at a time, but even with grep, the same thing goes.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads