Re: ls and rm command

  • From: "Jared Still" <jkstill@xxxxxxxxx>
  • To: Joel.Patterson@xxxxxxxxxxx
  • Date: Mon, 3 Dec 2007 15:11:52 -0800

On Dec 3, 2007 10:46 AM,  <Joel.Patterson@xxxxxxxxxxx> wrote:
> WITH XARGS
>
> jaxlawdw > find . -name "access_log.*" -atime +245 | xargs ls -lt

It's always a good idea to use the -d option of ls with xargs:

  find . -name "access_log.*" -atime +245 | xargs ls -ltd

A couple of test runs and a quick read of the ls man page will show why.


-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist
--
//www.freelists.org/webpage/oracle-l


Other related posts: