"Miguel G." wrote:
> 
> Hi all!
> 
> could anyone help me with a very simple script?
> (it simply doesn't work the  variables stuff)
> and also how can I modify this (tar) to retrive only files which
> I might get as new from $(find ...)
> 
> set $FN = etc-$(date +%Y-%m-%d)
> tar -cf $FN.tar /etc/
> gzip $FN.tar
> 
> THANKS A LOT!!!!!
> 

Try...

set FN = etc-$(date +%Y-%m-%d)
tar -cf $FN.tar /etc/
gzip $FN.tar

Note that I removed the $ from the first line. I haven't tested the
whole thing so there might be other problems.

-- 
____________________________________________________________________
Robert Paulsen                         http://paulsen.home.texas.net

Reply via email to