![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find the length of file names in a directory? | koti_rama | Shell Programming and Scripting | 5 | 06-04-2008 10:19 AM |
| Find File names with sustitution | baanprog | UNIX for Advanced & Expert Users | 4 | 09-26-2007 04:51 AM |
| mv command and file-timestamps | gian1975 | UNIX for Advanced & Expert Users | 1 | 07-04-2006 10:01 AM |
| how to find capital letter names in a file without finding words at start of sentence | kev269 | Shell Programming and Scripting | 1 | 04-10-2006 09:35 PM |
| Find command to get the timestamps | nguda | Shell Programming and Scripting | 8 | 03-24-2003 12:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Currently iam working on solaris environment,
Iam using find command to get list of all files between any two given dates. But the find command is not listing files accord. to timestamp. I tried using -exec option as -exec ls -ltr {} \; Still the files are not listed according to timestamp.. Can anyone help me on this.. find . -type f -name '*xyz*' -newer start.file ! -newer end.file -exec ls -ltr {} \; |
|
|||||
|
try !
find . -type f - ctime or (mtime) depending on what you're looking for .. find . -type f - ctime +20 -name "*" -exec ls -alt {} \; find . -type f -mtime -30 -name "*" -exec ls -alt {} \; i believe there is also an atime.. (man find should tell which choice to make).. moxxx68 ![]() |
|
||||
|
find . -type f -name '*xyz*' -newer start.file ! -newer end.file -exec ls -ltr {} \+
The above cmd is not giving files accord. to timestamp , so doesn't give required o/p find . -type f -name '*xyz*' -newer start.file ! -newer end.file -print | xargs ls -ltr The above cmd is giving files accord. to timestamp , this is working as required... Also the below cmd is working....... ls -ltr `find . -type f -name '*xyz*' -newer start.file ! -newer end.file -print ` Thanks for your inputs... |
|
||||
|
I want to get all the files between start.file and end.file in the current directory only (not files in the sub directories).
find . -type f -name '*xyz*' -newer start.file ! -newer end.file -print With the above command , Iam getting files in subdirectories of the current directory also... How to avoid this.. Can someone help us... |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| mtime |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|