tcpdump mailing list archives

Re: listing all devs


From: "Gisle Vanem" <giva () bgnett no>
Date: Thu, 15 May 2003 13:18:26 +0200

"David Young" <dyoung () pobox com> said:

  ? is a wildcard in most UNIX shells. Operators prefer not to have to
  escape characters in routine commands.

It's a wildcard in Windows/OS too? It doesn't stop us from using 
it for other things than filespecs. Do toy mean the shell or crt will
glob an arg like "file://?"

  What if a capture file contains the character '?' ?

Doesn't matter if readdir() will find it and the file is longer than "?".
Is it even possible to name a file "?". ?

  To list capture files in a directory, why not use the appropriate
  combination of ls, find, and file (or whichever the equivalent is in
  Windows), instead of tcpdump?

It would not be clean from a bunch of '*.cap', '*.dump', '*.trace'
etc. files which are libpcap capture files. My idea was to open
all files in a dir and look for the tcpdump signature.

--gv


-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: