Re: ls returns file doesn't exist, find finds it??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Feb 23, 2011, at 10:26 PM, John R. Dennison wrote:

> On Thu, Feb 24, 2011 at 01:22:41AM -0500, Kwan Lowe wrote:
>> Instead of piping to xargs, try:
>> find . -type f -mtime +15 -exec ls {} \;
> 
> 	Or get rid of child processes entirely:
> 
> 	find . -type f -mtime +15 -ls

Or don't depend on ls for such applications.  Use stat or echo instead.

- -- Corey / KB1JWQ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iQEcBAEBAgAGBQJNZhC/AAoJEPmSS8816iBeFR4IALE7O3o9MogpWKJOipZTLc0i
2BrOpKhJP3+NzmhzPRW7P+6pzCAdZJbiBn748NXs6SBgkQnVrOsRwwOefFy2Ju/g
bnQ/Sz7LnTW2pAxfRpk0/sxcU3+XczyHMj4zwCOOdOphbteE2g8KCK8I5ZbA2itv
OnyIQjkKSqEOeWTsmypdNHwTBa58eiZ1Zbj0+0dYJKCr9xavVB3SnvEJl0Id+O9X
h5iou2zeFUvizmdpPwkJw2h7LO7pjKGYG5PE+4LqJWpVy8SzMZzgLrLEnQUoaJ4q
Vn5t/StTzkOZbuC8Tvw1b0/3glnJUTuSoCTPCMJRHl1vvgpLCqemJ/LLhDy0xMU=
=kGlg
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux