[NCLUG] shell scripting
mike cullerton
michaelc at cullerton.com
Thu Sep 13 11:35:14 MDT 2001
thanks folks, this worked
find -mtime -1 -exec cp {} /some/other/dir \;
on 9/13/01 11:09 AM, mike cullerton at michaelc at cullerton.com 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
>
-- mike cullerton michaelc at cullerton.com
More information about the NCLUG
mailing list