View Single Post
  #7   (View Single Post)  
Old 7th April 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Code:
echo $(tcpdump -r $ANSWER -o -ttt -vv -e -n) > $OUTPUT
I believe the echo $( ... ) construct is causing the single line, as the shell is removing any newlines in echo's argument. I'm not sure why you want that construct there, but I'd try removing it entirely. Just keep the command ... you want the standard output from.

Last edited by IdOp; 7th April 2009 at 10:55 PM.
Reply With Quote