DBAsupport.com Forums - Powered by vBulletin
Results 1 to 7 of 7

Thread: Unix question

  1. #1
    Join Date
    Mar 2001
    Posts
    23

    Exclamation

    Hi All,
    I am using HP-UX 11 version. I want list all the files created n days ago. I tried "find" coomnad with "-ctime" option.But it is giving erratic results.Can anyone suggest a way to do this??

    Thanks,
    Madhu

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    What do you mean by "erratic results"?
    Jeff Hunter

  3. #3
    Join Date
    Mar 2001
    Posts
    23
    Hi,
    I used " find . -ctime +7 -name "*" -print " command.It is supposed to display all the files created more than 7 days ago.But it is displaying the files created within the lost 7 days also.

    Thanks
    Madhu

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    hmm, -ctime on Solaris means the file status changed not created...
    Jeff Hunter

  5. #5
    Join Date
    Jan 2001
    Posts
    3,134
    I'm not sure if this will help but I just user..
    LL |grep Jun' '19
    This command listed all the files created on Jun 19
    MH

  6. #6
    Join Date
    Jul 2001
    Posts
    45
    Hi there,

    Are there additional parameter in "find" that will list files sorted in size. I to delete unneccessary big files.

  7. #7
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Check man pages on find...

    man find, or you can write an awk script that would do the work for you.

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width