Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-users: Re: [Ethereal-users] how can i export many capture files to .txt?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: ronnie sahlberg <ronniesahlberg@xxxxxxxxx>
Date: Wed, 27 Oct 2004 18:12:26 +1000
You dont need to write a script for something simple as that.

Men are not afraid of nested loops on the command line, and this will
not even be a nested loop :-)


ls *.cap | while read CAPFILE;do echo "Processing : $CAPFILE" ;
tethereal -n -r $CAPFILE > `echo $CAPFILE | sed -e "/\.cap/.txt/"`;
done

should do the job just fine.


If the command line above does not work in your shell   it means that
there is something seriously wrong with your machine, it is broken.  
Please install cygwin on it and it will be less broken.




On Tue, 26 Oct 2004 15:21:25 -0400, Ian Schorr <ethereal@xxxxxxxxxxxxx> wrote:
> By .txt, do you mean a text file containing the kind of output that
> tethereal generates?
> 
> Just run tethereal with whatever display options it is that you want,
> and redirect the output to a file:
> 
>        tethereal -r infile > textfile.text
> 
> ...will generate a text file ("textfile.text") containing summaries of
> each packet in "infile"
> 
> Now repeat this 300 times.
> 
> Again, you could write a simple script that would automate this for
> you.  If you really want one large text file containing the traffic in
> ALL 300 files (I'm guessing perhaps that's why you asked the seperate
> 300-file merge question in the other thread), you could also merge all
> the files and then generate the text file with one command.
> 
> If you're not familiar with tethereal or the output it generates, check
> out the manual for tethereal and play around with its options.
> 
> Ian
> 
> 
> 
> On Oct 26, 2004, at 3:04 PM, nooshin bigdeli wrote:
> 
> > hi,
> >
> > i wana know how can i export about 300 capture files to .txt format? i
> > have installed etheral 10.6 on windowsxp.
> >
> > thank you!
> >
> > Do you Yahoo!?
> >  Express yourself with Y! Messenger! Free. Download 
> > now._______________________________________________
> > Ethereal-users mailing list
> > Ethereal-users@xxxxxxxxxxxx
> > http://www.ethereal.com/mailman/listinfo/ethereal-users
> 
> _______________________________________________
> Ethereal-users mailing list
> Ethereal-users@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-users
>