View Single Post
  #6  
Old 11-13-2007, 07:16 PM
CORed CORed is offline
Senior Member
 
Join Date: Sep 2002
Posts: 4,798
Default Re: shell script question

As others have said, there are plenty of backup solutions available, but if you really want to write your own program, you would be much better off writing it in perl than writing a shell script. You can use the opendir and readdir functions to get file names and the stat function to get at the actual create or modify dates of the files. This will be much more straightforward than trying to parse dates out of ls output using sed or something like that.
Reply With Quote