Using date as part of logfile name
I would like to write a shell script but am quite new to it. Not sure how to start.
Using the shell script, I hope to run tcpdump and save / log tcpdump's output into a file that the current date is included in the file name.
Eg today is 060504. When I run tcpdump via the shell script, I would like it to direct its output to a file say tcpdumplog060504 - something like that. Then say for the next day, if I run it again, it will log to tcpdumplog070504. So on and so forth.
How can I do this? Hope someone can help me out and provide some guidance.
I am planning to use cron to run the shell script.
Thanks a million.