Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: ls and rm command

Re: ls and rm command

From: Jared Still <jkstill_at_gmail.com>
Date: Mon, 3 Dec 2007 15:11:52 -0800
Message-ID: <bf46380712031511r5c1146a5w174765d61b4eebb3@mail.gmail.com>


On Dec 3, 2007 10:46 AM, <Joel.Patterson_at_crowley.com> 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
--
http://www.freelists.org/webpage/oracle-l
Received on Mon Dec 03 2007 - 17:11:52 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US