[PLUG] Find Issues
Paul Heinlein
heinlein at attbi.com
Fri Mar 29 19:25:57 UTC 2002
On Fri, 29 Mar 2002, Michael Montagne wrote:
> The -0r seemed to do the trick....or did it...
> This is my example:
> find . -type f -mtime +1 -print0|xargs -0 ls -al
> total 292824
> drwxrwx--- 2 ftpuser ftpgroup 4096 Mar 27 15:06 .
> drwxrwx--- 9 nobody ftpgroup 4096 Mar 22 13:33 ..
> -rwxrwx--- 1 ftpuser ftpgroup 6103643 Mar 27 14:37 FOGA -
> Architecturals 000622 details 0000-1999.zip
> -rwxrwx--- 1 ftpuser ftpgroup 65627696 Mar 27 14:45 FOGA -
> Architecturals 000622 details 2000-2999.zip
> -rwxrwx--- 1 ftpuser ftpgroup 67362233 Mar 27 15:06 FOGA -
> Architecturals 000622 drawings Xrefs1.zip
> -rwxrwx--- 1 ftpuser ftpgroup 108419762 Mar 27 15:20 FOGA -
> Architecturals 000622 drawings Xrefs2.zip
> -rwxrwx--- 1 ftpuser ftpgroup 51995357 Mar 27 14:54 FOGA -
> Architecturals 000622 drawings.zip
>
> find . -type f -mtime +1 -print0|xargs -0r ls -al
>
> Adding the r shows no resluts when there should be since these files
> were modified more than 1 day ago.
Take a peek at find's -daystart option to see why you're getting this
sort of results.
-- Paul Heinlein <heinlein at attbi.com>
More information about the PLUG
mailing list