[NCLUG] shell scripting

Charles Clarke clarke at clarkecomputer.com
Thu Sep 13 11:27:27 MDT 2001


Use find with -mtime or -newer
.... `find . -mtime 1` ...

charles

--------------------------------------------------------------------------
 Domain hosting from $15/month with error log analysis and link checking.
 http://www.clarkecomputer.com/sig.html       domains at clarkecomputer.com

On Thu, 13 Sep 2001, mike cullerton wrote:

> hey folks,
> 
>   hope everyone and all your loved ones are well.
> 
>   i have what i believe is a simple shell scripting question. i have a
> number of files in a directory. some of them have been modified today. i
> want to copy the files that have been modified today to another directory.
> 
> something like
> 
>  for ($i in <modified today>) cp $i /some/directory
> 
> i am using bash.
> 
> thanks,
> mike
> 
> -- mike cullerton   michaelc at cullerton.com
> 
> 
> _______________________________________________
> NCLUG mailing list
> NCLUG at nclug.org
> http://www.nclug.org/mailman/listinfo/nclug
> 




More information about the NCLUG mailing list