View Single Post
  #3  
Old 11-13-2007, 03:08 PM
MrWookie MrWookie is offline
Senior Member
 
Join Date: Feb 2005
Location: Treating my drinking problem
Posts: 17,411
Default Re: shell script question

I guess I'm not totally clear about the problem here, but isn't what need to do here basically just

<font class="small">Code:</font><hr /><pre>#Insert some code that converts $DATESTRING into a numerical $DATE

if $DATE + $CUTOFF &lt; $TODAY; then
rm file_$DATESTRING.tgz
fi</pre><hr />

At what step in this process are you having trouble?

Edit: Or yeah, just use a built in linux function that does all the work for you.
Reply With Quote