Similar Threads:
1.Obtain filenames from a directory (Pcap program)
Hi all,
I'm writing a program using libpcap, and I have multiple pcap files in
a folder that I want to capture.
I currently have
handle = pcap_open_offline("/data/traffic/pcap1.pcap", errbuf");
which works fine since pcap_open_offline() takes in a filename.
However, I want to process multiple pcap files from the directory /
data/traffic/ at once. Is there a way to do that?
Thank you.
Regards,
Rayne
2.Call AcuCobol Program in Unix from Windows and obtain the output
Hi, sorry for my english and my Cobol skills. I have a little question,
can i run an Acucobol Program what resides in a Unix Server from a
command line of a PC running windows 2000, and obtain/view the output (
like a DOS command, but using some Cobol Exe ) ?
Thanks,
Mart Olivares
Cdoba - Argentina
3.Want to find duplicate file entries in two directories - by filename only
Anonymous wrote:
> "RG" == Robert Glueck < XXXX@XXXXX.COM >:
> RG> I have two directories, dir A (6000 entries) and dir B (1000
> RG> entries). Some of the entries in dir B are duplicates of
> RG> entries in dir A (by name only, creation dates and sizes
> RG> differ). I want to find out which of the entries in dir B
> RG> are duplicated in dir A and then selectively delete the
> RG> duplicates in dir B. How would I do this?
>
> Michael A. Gumienny has written a perl script, called 'finddups', that
> might help you.
>
Thanks. I tried the finddups script but it generated a lot
of errors. It just doesn't seem to be suited to solving my
particular problem.
Joe Beanfish's suggestion works perfectly for me (slightly
amended)
ls dir1 >/tmp/dir1.lst
ls dir2 >/tmp/dir2.lst
sort /tmp/dir1.lst /tmp/dir2.lst|uniq -d >/tmp/dups.lst
but it isn't complete. I wind up with a text file that
lists all of the duplicate files in dir1. I now want to
move all of these files to a directory (e.g. /tmp/dups) from
which I can delete them all.
Hence, I need a shell script that opens the file dups.lst
(which contains nothing but filenames, separated by carriage
returns) and parses the list line by line, executing
something like
mv filename /tmp/dup
for every item in the list. That should be very simple.
Unfortunately, I'm totally ignorant of bash shell scripting.
Can anyone help? Thanks.
Robert
4.Want to find duplicate file entries in two directories - by filename only
"RG" == Robert Glueck < XXXX@XXXXX.COM >:
RG> I have two directories, dir A (6000 entries) and dir B (1000
RG> entries). Some of the entries in dir B are duplicates of
RG> entries in dir A (by name only, creation dates and sizes
RG> differ). I want to find out which of the entries in dir B
RG> are duplicated in dir A and then selectively delete the
RG> duplicates in dir B. How would I do this?
Michael A. Gumienny has written a perl script, called 'finddups', that
might help you.
5.Want to find duplicate file entries in two directories - by filename only
I have two directories, dir A (6000 entries) and dir B (1000
entries). Some of the entries in dir B are duplicates of
entries in dir A (by name only, creation dates and sizes
differ). I want to find out which of the entries in dir B
are duplicated in dir A and then selectively delete the
duplicates in dir B. How would I do this?
Thanks for your help.
Robert
6. Want to find duplicate file entries in two directories - by filename
7. Identifying if object {filename|directoryname} is file or directory when using diff -sqdr
8. "ls" command to display only filenames without directory path