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:
- listing all devs Gisle Vanem (May 11)
- RE: listing all devs Fulvio Risso (May 12)
- Re: listing all devs Guy Harris (May 12)
- RE: listing all devs Fulvio Risso (May 13)
- Re: listing all devs Gisle Vanem (May 13)
- RE: listing all devs Fulvio Risso (May 14)
- Re: listing all devs Guy Harris (May 12)
- RE: listing all devs Fulvio Risso (May 12)
- Re: listing all devs David Young (May 14)
- Re: listing all devs Gisle Vanem (May 15)
- RE: listing all devs Fulvio Risso (May 15)
- Re: listing all devs David Young (May 15)
- Re: listing all devs Guy Harris (May 15)
- Re: listing all devs Gisle Vanem (May 15)
- <Possible follow-ups>
- Fw: listing all devs Loris Degioanni (May 13)