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.