View Single Post
  #9   (View Single Post)  
Old 12th August 2008
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223

Some people may find the back-quotes visually confusing, here is another option:
$ dump -0Lauf - /var | bzip2 > /home/var.dump-$(date "+%Y.%d.%m").bz2

In this case, anything inside $(..) is executed.

EDIT: My sincere apologies, I forgot I was on the FreeBSD board.. the above will not work in csh.

Last edited by BSDfan666; 12th August 2008 at 07:59 PM.
Reply With Quote